1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-25 03:09:47 +01:00

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 # like: [source]/path/to/engine.xml
loadPath = '' loadPath = ''
[home-manager]/programs.firefox.profiles.${profile.name}.search.engines."${ [home-manager]/programs.firefox.profiles.${profile.name}.search.engines."${
replaceChars [ "\\" ] [ "\\\\" ] name replaceStrings [ "\\" ] [ "\\\\" ] name
}"''; }"'';
})) // { })) // {
# Required fields for all engine configurations # Required fields for all engine configurations

View file

@ -6,7 +6,7 @@ let
cfg = config.services.imapnotify; cfg = config.services.imapnotify;
safeName = lib.replaceChars [ "@" ":" "\\" "[" "]" ] [ "-" "-" "-" "" "" ]; safeName = lib.replaceStrings [ "@" ":" "\\" "[" "]" ] [ "-" "-" "-" "" "" ];
imapnotifyAccounts = imapnotifyAccounts =
filter (a: a.imapnotify.enable) (attrValues config.accounts.email.accounts); 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> # From <nixpkgs/nixos/modules/system/boot/systemd-lib.nix>
mkPathSafeName = mkPathSafeName =
lib.replaceChars [ "@" ":" "\\" "[" "]" ] [ "-" "-" "-" "" "" ]; lib.replaceStrings [ "@" ":" "\\" "[" "]" ] [ "-" "-" "-" "" "" ];
enabled = cfg.services != { } # \ enabled = cfg.services != { } # \
|| cfg.slices != { } # \ || cfg.slices != { } # \