@@ -24,9 +24,8 @@ existing packages here and modify it as necessary.
2424
2525*/
2626
27−{
28− libsForQt5, lib, fetchurl,
29− gconf, gsettings-desktop-schemas
27+{ libsForQt5, lib, config, fetchurl
28+, gconf, gsettings-desktop-schemas
3029}:
3130
3231let
@@ -123,7 +122,6 @@ let
123122 kscreen = callPackage ./kscreen.nix {};
124123 kscreenlocker = callPackage ./kscreenlocker.nix {};
125124 ksshaskpass = callPackage ./ksshaskpass.nix {};
126− ksysguard = throw "ksysguard has been replaced with plasma-systemmonitor";
127125 ksystemstats = callPackage ./ksystemstats.nix {};
128126 kwallet-pam = callPackage ./kwallet-pam.nix {};
129127 kwayland-integration = callPackage ./kwayland-integration.nix {};
@@ -164,6 +162,8 @@ let
164162 parachute = callPackage ./3rdparty/kwin/scripts/parachute.nix { };
165163 };
166164
165+ } // lib.optionalAttrs (config.allowAliases or true) {
166+ ksysguard = throw "ksysguard has been replaced with plasma-systemmonitor";
167167 };
168168in
169169lib.makeScope libsForQt5.newScope packages