From 9e00c643d823b9c7483c13cc338c6a3322102a9c Mon Sep 17 00:00:00 2001 From: volth Date: Sat, 19 Aug 2017 06:21:13 +0000 Subject: [PATCH] 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 --- nixos/modules/system/boot/kernel.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/system/boot/kernel.nix b/nixos/modules/system/boot/kernel.nix index cf70a891c0c..cc68be781fc 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 {