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:
parent
d8b02ef359
commit
9e00c643d8
@ -57,6 +57,7 @@ in
|
|||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
description = "Parameters added to the kernel command line.";
|
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 {
|
boot.consoleLogLevel = mkOption {
|
||||||
|
Loading…
Reference in New Issue
Block a user