mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +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
|
||||
loadPath = ''
|
||||
[home-manager]/programs.firefox.profiles.${profile.name}.search.engines."${
|
||||
replaceChars [ "\\" ] [ "\\\\" ] name
|
||||
replaceStrings [ "\\" ] [ "\\\\" ] name
|
||||
}"'';
|
||||
})) // {
|
||||
# Required fields for all engine configurations
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -8,7 +8,7 @@ let
|
|||
|
||||
# From <nixpkgs/nixos/modules/system/boot/systemd-lib.nix>
|
||||
mkPathSafeName =
|
||||
lib.replaceChars [ "@" ":" "\\" "[" "]" ] [ "-" "-" "-" "" "" ];
|
||||
lib.replaceStrings [ "@" ":" "\\" "[" "]" ] [ "-" "-" "-" "" "" ];
|
||||
|
||||
enabled = cfg.services != { } # \
|
||||
|| cfg.slices != { } # \
|
||||
|
|
Loading…
Reference in a new issue