From c4ed78b5a09727ffce5f57ca82290eecbf7d96a5 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 1 Dec 2024 18:51:22 +0100 Subject: [PATCH] nixos/pantheon: Switch notExcluded to disablePackageByName MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, this check was inconsistent with `removePackagesByName` – the latter compares the packages using their names. --- nixos/modules/services/x11/desktop-managers/pantheon.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/x11/desktop-managers/pantheon.nix b/nixos/modules/services/x11/desktop-managers/pantheon.nix index 1ab898d35bc2..2b707f61da08 100644 --- a/nixos/modules/services/x11/desktop-managers/pantheon.nix +++ b/nixos/modules/services/x11/desktop-managers/pantheon.nix @@ -12,7 +12,7 @@ let extraGSettingsOverrides = cfg.extraGSettingsOverrides; }; - notExcluded = pkg: (!(lib.elem pkg config.environment.pantheon.excludePackages)); + notExcluded = pkg: utils.disablePackageByName pkg config.environment.pantheon.excludePackages; in {