nixos/systemd: Also escape \ characters
This commit is contained in:
parent
664909d31b
commit
f020a26164
@ -13,7 +13,7 @@ let
|
|||||||
|
|
||||||
makeUnit = name: unit:
|
makeUnit = name: unit:
|
||||||
let
|
let
|
||||||
pathSafeName = lib.replaceChars ["@"] ["-"] name;
|
pathSafeName = lib.replaceChars ["@" "\\"] ["-" "-"] name;
|
||||||
in
|
in
|
||||||
if unit.enable then
|
if unit.enable then
|
||||||
pkgs.runCommand "unit-${pathSafeName}" { preferLocalBuild = true; inherit (unit) text; }
|
pkgs.runCommand "unit-${pathSafeName}" { preferLocalBuild = true; inherit (unit) text; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user