Skip to content

Commit

Permalink
nixos/scx: cleanup (#358339)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRTitor authored Nov 24, 2024
2 parents 518c682 + fc8f588 commit 041855a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nixos/modules/services/scheduling/scx.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
pkgs,
config,
utils,
...
}:
let
Expand Down Expand Up @@ -61,6 +62,7 @@ in

extraArgs = lib.mkOption {
type = lib.types.listOf lib.types.singleLineStr;
default = [ ];
example = [
"--slice-us 5000"
"--verbose"
Expand Down Expand Up @@ -90,9 +92,13 @@ in

serviceConfig = {
Type = "simple";
ExecStart = "${lib.getExe' cfg.package cfg.scheduler} ${lib.concatStringsSep " " cfg.extraArgs}";
ExecStart = utils.escapeSystemdExecArgs (
[
(lib.getExe' cfg.package cfg.scheduler)
]
++ cfg.extraArgs
);
Restart = "on-failure";
StandardError = "journal";
};

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

0 comments on commit 041855a

Please sign in to comment.