From b12ea8d786fa08e1ae24244aa9f940bbfcf8684a Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 29 Dec 2024 23:26:16 +0100 Subject: [PATCH] fix(users/flokli/nixos-tvix-cache): use escapeSystemdExecArgs escapeSystemdExecArgs is the function that should be used to escape Exec* service lines. See https://github.com/NixOS/nixpkgs/blob/a72b1b3c658f8855f9a3f7858b084695a78e4591/nixos/lib/utils.nix#L122-L128 Reported-By: matrix:u/lukas:luflosi.de Change-Id: Ia3a628db221a30310154c060a6e29ccb2c94c352 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12930 Autosubmit: flokli Tested-by: BuildkiteCI Reviewed-by: Ilan Joselevich --- users/flokli/nixos/nixos-tvix-cache/nar-bridge-module.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/users/flokli/nixos/nixos-tvix-cache/nar-bridge-module.nix b/users/flokli/nixos/nixos-tvix-cache/nar-bridge-module.nix index 3370f1aaa..aec4d689e 100644 --- a/users/flokli/nixos/nixos-tvix-cache/nar-bridge-module.nix +++ b/users/flokli/nixos/nixos-tvix-cache/nar-bridge-module.nix @@ -1,5 +1,6 @@ { config , lib +, utils , pkgs , depot , ... @@ -61,7 +62,7 @@ in after = [ "nar-bridge.socket" ]; wantedBy = [ "multi-user.target" ]; serviceConfig = { - ExecStart = "${package}/bin/nar-bridge ${lib.escapeShellArgs args}"; + ExecStart = "${package}/bin/nar-bridge ${utils.escapeSystemdExecArgs args}"; Restart = "always"; RestartSec = "10";