From f020a261646da736291fc4b398d48739bd34dbd9 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Sun, 19 Oct 2014 16:34:53 -0700 Subject: [PATCH] nixos/systemd: Also escape \ characters --- nixos/modules/system/boot/systemd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 18dbed17a97..c1205dc0c44 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; }