mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-27 15:23:26 +00:00
Merge pull request #133625 from cab404/kernel-params-checking
nixos.system.boot.kernel: stronger constraints for kernelParam type
This commit is contained in:
commit
0281ba6ace
@ -83,7 +83,10 @@ in
|
||||
};
|
||||
|
||||
boot.kernelParams = mkOption {
|
||||
type = types.listOf types.str;
|
||||
type = types.listOf (types.strMatching ''([^"[:space:]]|"[^"]*")+'' // {
|
||||
name = "kernelParam";
|
||||
description = "string, with spaces inside double quotes";
|
||||
});
|
||||
default = [ ];
|
||||
description = "Parameters added to the kernel command line.";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user