nixos/flatpak: require xdg.portal to be enabled

This commit is contained in:
worldofpeace 2019-07-26 22:35:50 -04:00
parent c4d06eff3f
commit 785158fd64

View file

@ -22,6 +22,12 @@ in {
###### implementation
config = mkIf cfg.enable {
assertions = [
{ assertion = (config.xdg.portal.enable == true);
message = "To use Flatpak you must enable XDG Desktop Portals with xdg.portal.enable.";
}
];
environment.systemPackages = [ pkgs.flatpak ];
services.dbus.packages = [ pkgs.flatpak ];