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
This commit is contained in:
volth 2017-08-19 06:21:13 +00:00 committed by GitHub
parent d8b02ef359
commit 9e00c643d8

View file

@ -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 {