From a6faab2deee9eebad35ba14e20a8f27e545095c8 Mon Sep 17 00:00:00 2001 From: s0me1newithhand7s Date: Wed, 18 Mar 2026 01:02:03 +0300 Subject: [PATCH] nixos/scx: double quoting fix Signed-off-by: s0me1newithhand7s --- nixos/modules/services/scheduling/scx.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/scheduling/scx.nix b/nixos/modules/services/scheduling/scx.nix index 612c4995879a..bdc733df37f4 100644 --- a/nixos/modules/services/scheduling/scx.nix +++ b/nixos/modules/services/scheduling/scx.nix @@ -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" ];