mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 19:29:47 +01:00
treewide: replace replaceChars with replaceStrings
replaceChars is a deprecated alias, see
05a2dfd674
for details.
This commit is contained in:
parent
b3565b3447
commit
3f0d04aeca
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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 != { } # \
|
||||||
|
|
Loading…
Reference in a new issue