diff options
author | William A. Kennington III <william@wkennington.com> | 2014-10-19 16:34:53 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2014-10-19 16:34:53 -0700 |
commit | f020a261646da736291fc4b398d48739bd34dbd9 (patch) | |
tree | 12934bdbfd6e478745d551a4241a044a522606b1 /nixos | |
parent | 664909d31bf69d78f6fb1e518e419afde5ec401c (diff) |
nixos/systemd: Also escape \ characters
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/system/boot/systemd.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 18dbed17a97e..c1205dc0c447 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -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; } |