diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-07-26 22:35:50 -0400 |
---|---|---|
committer | worldofpeace <worldofpeace@protonmail.ch> | 2019-07-26 22:35:50 -0400 |
commit | 785158fd648a3b4996a3aa68a0ba6575336cc43a (patch) | |
tree | 3c2c0c912cdcf069cadaa019cfe80f38987157fa /nixos/modules/services/desktops/flatpak.nix | |
parent | c4d06eff3fd41bc71aa9d48f0122b20a28bb2c52 (diff) |
nixos/flatpak: require xdg.portal to be enabled
Diffstat (limited to 'nixos/modules/services/desktops/flatpak.nix')
-rw-r--r-- | nixos/modules/services/desktops/flatpak.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/desktops/flatpak.nix b/nixos/modules/services/desktops/flatpak.nix index 824634061180a..1492d855aa034 100644 --- a/nixos/modules/services/desktops/flatpak.nix +++ b/nixos/modules/services/desktops/flatpak.nix @@ -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 ]; |