treewide: replace replaceChars with replaceStrings

replaceChars is a deprecated alias, see
05a2dfd674
for details.
This commit is contained in:
1sixth 2022-12-16 12:45:46 +08:00 committed by Robert Helgesson
parent b3565b3447
commit 3f0d04aeca
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 3 additions and 3 deletions

View file

@ -600,7 +600,7 @@ in {
# like: [source]/path/to/engine.xml
loadPath = ''
[home-manager]/programs.firefox.profiles.${profile.name}.search.engines."${
replaceChars [ "\\" ] [ "\\\\" ] name
replaceStrings [ "\\" ] [ "\\\\" ] name
}"'';
})) // {
# Required fields for all engine configurations

View file

@ -6,7 +6,7 @@ let
cfg = config.services.imapnotify;
safeName = lib.replaceChars [ "@" ":" "\\" "[" "]" ] [ "-" "-" "-" "" "" ];
safeName = lib.replaceStrings [ "@" ":" "\\" "[" "]" ] [ "-" "-" "-" "" "" ];
imapnotifyAccounts =
filter (a: a.imapnotify.enable) (attrValues config.accounts.email.accounts);

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 != { } # \