Unverified Commit 0281ba6a authored by Timothy DeHerrera's avatar Timothy DeHerrera Committed by GitHub
Browse files

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

nixos.system.boot.kernel: stronger constraints for kernelParam type
parents f38ee4de a868222d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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.";
    };