diff options
author | William A. Kennington III <william@wkennington.com> | 2015-03-25 15:33:21 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2015-03-25 15:33:21 -0700 |
commit | 8b3c7af3586932d20113a01303a6028bf1849107 (patch) | |
tree | 1cddec4012f4c63c40ac786761a041c5244b3052 /nixos/modules/system | |
parent | 21cd86f2d9449ea2e969900bbc0324bbcad380fa (diff) | |
parent | 6ca7fb8f733ddd9a0d7cd62aac4954aa80be062a (diff) | |
download | nixpkgs-8b3c7af3586932d20113a01303a6028bf1849107.tar nixpkgs-8b3c7af3586932d20113a01303a6028bf1849107.tar.gz nixpkgs-8b3c7af3586932d20113a01303a6028bf1849107.tar.bz2 nixpkgs-8b3c7af3586932d20113a01303a6028bf1849107.tar.lz nixpkgs-8b3c7af3586932d20113a01303a6028bf1849107.tar.xz nixpkgs-8b3c7af3586932d20113a01303a6028bf1849107.tar.zst nixpkgs-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.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 f853a8f6775..6d9871a2f6f 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; } |