Unverified Commit 06e6ee99 authored by Masum Reza's avatar Masum Reza Committed by GitHub
Browse files

nixos/scx: double quoting fix (#500854)

parents 7f0e59b7 a6faab2d
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -71,11 +71,11 @@ in
    };

    extraArgs = lib.mkOption {
      type = lib.types.listOf lib.types.singleLineStr;
      type = lib.types.listOf lib.types.str;
      default = [ ];
      example = [
        "--slice-us 5000"
        "--verbose"
        "--slice-us 5000"
      ];
      description = ''
        Parameters passed to the chosen scheduler at runtime.
@@ -107,9 +107,10 @@ in
        '';
        Restart = "on-failure";
      };

      environment = {
        SCX_SCHEDULER = cfg.scheduler;
        SCX_FLAGS = lib.escapeShellArgs cfg.extraArgs;
        SCX_FLAGS = lib.concatStringsSep " " cfg.extraArgs;
      };

      wantedBy = [ "multi-user.target" ];