about summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-02-18 21:16:30 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2019-02-18 21:16:30 -0500
commit6fc5ce2c4f765ce8edb4368557884ba1d7e2c53e (patch)
tree7aa0c447ec52df48a5d9ad48e4494e611a87aae0 /nixos/modules/config
parentfce294caab31427f901a8723cee68dc91577f493 (diff)
downloadnixlib-6fc5ce2c4f765ce8edb4368557884ba1d7e2c53e.tar
nixlib-6fc5ce2c4f765ce8edb4368557884ba1d7e2c53e.tar.gz
nixlib-6fc5ce2c4f765ce8edb4368557884ba1d7e2c53e.tar.bz2
nixlib-6fc5ce2c4f765ce8edb4368557884ba1d7e2c53e.tar.lz
nixlib-6fc5ce2c4f765ce8edb4368557884ba1d7e2c53e.tar.xz
nixlib-6fc5ce2c4f765ce8edb4368557884ba1d7e2c53e.tar.zst
nixlib-6fc5ce2c4f765ce8edb4368557884ba1d7e2c53e.zip
nixos/system-path.nix: add 3 to every priority
We can’t use lowPrio here because it erases the differences in
priority of the packages by setting it to a constant value. see this
comment for info:

https://github.com/NixOS/nixpkgs/issues/55886#issuecomment-464766877
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/system-path.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/system-path.nix b/nixos/modules/config/system-path.nix
index 7a65e44e828d..fae2fc740082 100644
--- a/nixos/modules/config/system-path.nix
+++ b/nixos/modules/config/system-path.nix
@@ -7,7 +7,7 @@ with lib;
 
 let
 
-  requiredPackages = map lib.lowPrio
+  requiredPackages = map (pkg: setPrio ((pkg.meta.priority or 5) + 3) pkg)
     [ config.nix.package
       pkgs.acl
       pkgs.attr