From 2375fac93dfbf47bc2d0e7679c38fa0154b6a3db Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Tue, 31 May 2022 23:48:46 +0800 Subject: [PATCH] nixos/pantheon: treat evince and file-roller as optional app --- nixos/modules/services/x11/desktop-managers/pantheon.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/x11/desktop-managers/pantheon.nix b/nixos/modules/services/x11/desktop-managers/pantheon.nix index a10ef0cd7bea..d04e565f7d31 100644 --- a/nixos/modules/services/x11/desktop-managers/pantheon.nix +++ b/nixos/modules/services/x11/desktop-managers/pantheon.nix @@ -216,9 +216,6 @@ in pantheon-agent-polkit ])) config.environment.pantheon.excludePackages; - programs.evince.enable = mkDefault true; - programs.file-roller.enable = mkDefault true; - # Settings from elementary-default-settings environment.etc."gtk-3.0/settings.ini".source = "${pkgs.pantheon.elementary-default-settings}/etc/gtk-3.0/settings.ini"; @@ -272,6 +269,9 @@ in }) (mkIf serviceCfg.apps.enable { + programs.evince.enable = mkDefault true; + programs.file-roller.enable = mkDefault true; + environment.systemPackages = utils.removePackagesByName ([ pkgs.gnome.gnome-font-viewer ] ++ (with pkgs.pantheon; [