about summary refs log tree commit diff
path: root/nixos/modules/system/boot
diff options
context:
space:
mode:
authorvolth <volth@webmaster.ms>2017-08-19 06:21:13 +0000
committerGitHub <noreply@github.com>2017-08-19 06:21:13 +0000
commit9e00c643d823b9c7483c13cc338c6a3322102a9c (patch)
treeae9678ac96f8a0db80a9af93ecd9a0c393e348cd /nixos/modules/system/boot
parentd8b02ef3592a73cf08153455ddff564657e5baa1 (diff)
downloadnixlib-9e00c643d823b9c7483c13cc338c6a3322102a9c.tar
nixlib-9e00c643d823b9c7483c13cc338c6a3322102a9c.tar.gz
nixlib-9e00c643d823b9c7483c13cc338c6a3322102a9c.tar.bz2
nixlib-9e00c643d823b9c7483c13cc338c6a3322102a9c.tar.lz
nixlib-9e00c643d823b9c7483c13cc338c6a3322102a9c.tar.xz
nixlib-9e00c643d823b9c7483c13cc338c6a3322102a9c.tar.zst
nixlib-9e00c643d823b9c7483c13cc338c6a3322102a9c.zip
boot.kernelParams: dedup and sort
dedup and sort boot.kernelParams  to avoid restarting services on eval order change
Fixes https://github.com/NixOS/nixpkgs/issues/28277
Diffstat (limited to 'nixos/modules/system/boot')
-rw-r--r--nixos/modules/system/boot/kernel.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/kernel.nix b/nixos/modules/system/boot/kernel.nix
index cf70a891c0ca..cc68be781fc4 100644
--- a/nixos/modules/system/boot/kernel.nix
+++ b/nixos/modules/system/boot/kernel.nix
@@ -57,6 +57,7 @@ in
       type = types.listOf types.str;
       default = [ ];
       description = "Parameters added to the kernel command line.";
+      apply = list: attrNames (genAttrs list (_: true)); # dedup and sort to avoid restarting services on eval order change
     };
 
     boot.consoleLogLevel = mkOption {