nixos/systemd: Also escape \ characters

This commit is contained in:
William A. Kennington III 2014-10-19 16:34:53 -07:00
parent 664909d31b
commit f020a26164

View File

@ -13,7 +13,7 @@ let
makeUnit = name: unit:
let
pathSafeName = lib.replaceChars ["@"] ["-"] name;
pathSafeName = lib.replaceChars ["@" "\\"] ["-" "-"] name;
in
if unit.enable then
pkgs.runCommand "unit-${pathSafeName}" { preferLocalBuild = true; inherit (unit) text; }