summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorGuillaume Maudoux <layus.on@gmail.com>2015-03-25 22:08:24 +0100
committerGuillaume Maudoux <layus.on@gmail.com>2015-03-25 22:11:35 +0100
commit6ca7fb8f733ddd9a0d7cd62aac4954aa80be062a (patch)
tree0dd82cd1eb69b05c610d52e8ee0d4e518c8d1015 /nixos/modules/system
parent0d186a88a5a718cbb51f81e8acdde3cc01e78076 (diff)
downloadnixlib-6ca7fb8f733ddd9a0d7cd62aac4954aa80be062a.tar
nixlib-6ca7fb8f733ddd9a0d7cd62aac4954aa80be062a.tar.gz
nixlib-6ca7fb8f733ddd9a0d7cd62aac4954aa80be062a.tar.bz2
nixlib-6ca7fb8f733ddd9a0d7cd62aac4954aa80be062a.tar.lz
nixlib-6ca7fb8f733ddd9a0d7cd62aac4954aa80be062a.tar.xz
nixlib-6ca7fb8f733ddd9a0d7cd62aac4954aa80be062a.tar.zst
nixlib-6ca7fb8f733ddd9a0d7cd62aac4954aa80be062a.zip
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; }