summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2022-11-09 22:40:05 +0800
committerBobby Rong <rjl931189261@126.com>2022-11-10 14:47:06 +0800
commitba4494f8f67b3a160ecfd24391cea477f6a4ff6a (patch)
treedf31943116837a20ddf2c82d65fb905756b63306 /nixos/modules/services
parentbb307797918a9b3a5c0e1c50ecdc7db154eb1944 (diff)
nixos/cinnamon: make it possible to remove more non-essential packages
Packages for accessibility and theme can now be removed with excludePackages
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/x11/desktop-managers/cinnamon.nix24
1 files changed, 14 insertions, 10 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/cinnamon.nix b/nixos/modules/services/x11/desktop-managers/cinnamon.nix
index 5548d7a3eef2a..1bc5d108af0ae 100644
--- a/nixos/modules/services/x11/desktop-managers/cinnamon.nix
+++ b/nixos/modules/services/x11/desktop-managers/cinnamon.nix
@@ -123,11 +123,8 @@ in
         cinnamon-screensaver = {};
       };
 
-      environment.systemPackages = with pkgs.cinnamon // pkgs; [
+      environment.systemPackages = with pkgs.cinnamon // pkgs; ([
         desktop-file-utils
-        nixos-artwork.wallpapers.simple-dark-gray
-        onboard
-        sound-theme-freedesktop
 
         # common-files
         cinnamon-common
@@ -152,22 +149,29 @@ in
         cinnamon-control-center
         cinnamon-settings-daemon
         libgnomekbd
-        orca
 
         # theme
         gnome.adwaita-icon-theme
         gnome.gnome-themes-extra
         gtk3.out
+
+        # other
+        glib # for gsettings
+        xdg-user-dirs
+      ] ++ utils.removePackagesByName [
+        # accessibility
+        onboard
+        orca
+
+        # theme
+        sound-theme-freedesktop
+        nixos-artwork.wallpapers.simple-dark-gray
         mint-artwork
         mint-themes
         mint-x-icons
         mint-y-icons
         vanilla-dmz
-
-        # other
-        glib # for gsettings
-        xdg-user-dirs
-      ];
+      ] config.environment.cinnamon.excludePackages);
 
       xdg.mime.enable = true;
       xdg.icons.enable = true;