summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-03-25 15:33:21 -0700
committerWilliam A. Kennington III <william@wkennington.com>2015-03-25 15:33:21 -0700
commit8b3c7af3586932d20113a01303a6028bf1849107 (patch)
tree1cddec4012f4c63c40ac786761a041c5244b3052 /nixos/modules/system
parent21cd86f2d9449ea2e969900bbc0324bbcad380fa (diff)
parent6ca7fb8f733ddd9a0d7cd62aac4954aa80be062a (diff)
downloadnixlib-8b3c7af3586932d20113a01303a6028bf1849107.tar
nixlib-8b3c7af3586932d20113a01303a6028bf1849107.tar.gz
nixlib-8b3c7af3586932d20113a01303a6028bf1849107.tar.bz2
nixlib-8b3c7af3586932d20113a01303a6028bf1849107.tar.lz
nixlib-8b3c7af3586932d20113a01303a6028bf1849107.tar.xz
nixlib-8b3c7af3586932d20113a01303a6028bf1849107.tar.zst
nixlib-8b3c7af3586932d20113a01303a6028bf1849107.zip
Merge pull request #6981 from layus/systemd-escape-colon
nixos/systemd: Also escape ':' characters
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/systemd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix
index f853a8f6775c..6d9871a2f6f9 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; }