nixos/scx: cleanup (#358339)

authored by Masum Reza and committed by GitHub 041855ac 518c682a

+8 -2
+8 -2
nixos/modules/services/scheduling/scx.nix
··· 2 2 lib, 3 3 pkgs, 4 4 config, 5 + utils, 5 6 ... 6 7 }: 7 8 let ··· 61 62 62 63 extraArgs = lib.mkOption { 63 64 type = lib.types.listOf lib.types.singleLineStr; 65 + default = [ ]; 64 66 example = [ 65 67 "--slice-us 5000" 66 68 "--verbose" ··· 90 92 91 93 serviceConfig = { 92 94 Type = "simple"; 93 - ExecStart = "${lib.getExe' cfg.package cfg.scheduler} ${lib.concatStringsSep " " cfg.extraArgs}"; 95 + ExecStart = utils.escapeSystemdExecArgs ( 96 + [ 97 + (lib.getExe' cfg.package cfg.scheduler) 98 + ] 99 + ++ cfg.extraArgs 100 + ); 94 101 Restart = "on-failure"; 95 - StandardError = "journal"; 96 102 }; 97 103 98 104 wantedBy = [ "multi-user.target" ];