diff --git a/nixos/modules/services/x11/desktop-managers/cinnamon.nix b/nixos/modules/services/x11/desktop-managers/cinnamon.nix index 7f824680b92e..148645ed1d67 100644 --- a/nixos/modules/services/x11/desktop-managers/cinnamon.nix +++ b/nixos/modules/services/x11/desktop-managers/cinnamon.nix @@ -12,7 +12,7 @@ let extraGSettingsOverrides = cfg.extraGSettingsOverrides; }; - notExcluded = pkg: (!(lib.elem pkg config.environment.cinnamon.excludePackages)); + notExcluded = pkg: (!(lib.elem (lib.getName pkg) (map lib.getName config.environment.cinnamon.excludePackages))); in { diff --git a/nixos/modules/services/x11/desktop-managers/gnome.nix b/nixos/modules/services/x11/desktop-managers/gnome.nix index cbbce8468569..8b043f109a36 100644 --- a/nixos/modules/services/x11/desktop-managers/gnome.nix +++ b/nixos/modules/services/x11/desktop-managers/gnome.nix @@ -58,7 +58,7 @@ let enableGnomePanel = true; } ++ cfg.flashback.customSessions; - notExcluded = pkg: mkDefault (!(lib.elem pkg config.environment.gnome.excludePackages)); + notExcluded = pkg: mkDefault (!(lib.elem (lib.getName pkg) (map lib.getName config.environment.gnome.excludePackages))); in