Merge pull request #133625 from cab404/kernel-params-checking

nixos.system.boot.kernel: stronger constraints for kernelParam type

authored by

Timothy DeHerrera and committed by
GitHub
0281ba6a f38ee4de

+4 -1
+4 -1
nixos/modules/system/boot/kernel.nix
··· 83 83 }; 84 84 85 85 boot.kernelParams = mkOption { 86 - type = types.listOf types.str; 86 + type = types.listOf (types.strMatching ''([^"[:space:]]|"[^"]*")+'' // { 87 + name = "kernelParam"; 88 + description = "string, with spaces inside double quotes"; 89 + }); 87 90 default = [ ]; 88 91 description = "Parameters added to the kernel command line."; 89 92 };