treewide: replace replaceChars with replaceStrings

replaceChars is a deprecated alias, see
https://github.com/NixOS/nixpkgs/commit/05a2dfd6744cdc6ab0b57f8ab866cc686b05f519
for details.
This commit is contained in:
1sixth
2022-12-16 12:45:46 +08:00
committed by Robert Helgesson
parent b3565b3447
commit 3f0d04aeca
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ let
# From <nixpkgs/nixos/modules/system/boot/systemd-lib.nix>
mkPathSafeName =
lib.replaceChars [ "@" ":" "\\" "[" "]" ] [ "-" "-" "-" "" "" ];
lib.replaceStrings [ "@" ":" "\\" "[" "]" ] [ "-" "-" "-" "" "" ];
enabled = cfg.services != { } # \
|| cfg.slices != { } # \