fix(users/flokli/nixos-tvix-cache): use escapeSystemdExecArgs
escapeSystemdExecArgs is the function that should be used to escape
Exec* service lines.
See a72b1b3c65/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 <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
This commit is contained in:
parent
06311444aa
commit
b12ea8d786
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
{ config
|
{ config
|
||||||
, lib
|
, lib
|
||||||
|
, utils
|
||||||
, pkgs
|
, pkgs
|
||||||
, depot
|
, depot
|
||||||
, ...
|
, ...
|
||||||
|
@ -61,7 +62,7 @@ in
|
||||||
after = [ "nar-bridge.socket" ];
|
after = [ "nar-bridge.socket" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${package}/bin/nar-bridge ${lib.escapeShellArgs args}";
|
ExecStart = "${package}/bin/nar-bridge ${utils.escapeSystemdExecArgs args}";
|
||||||
|
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = "10";
|
RestartSec = "10";
|
||||||
|
|
Loading…
Reference in a new issue