From 3f0d04aeca4ca51d3b1c2e008067b71b6eb31fee Mon Sep 17 00:00:00 2001 From: 1sixth <1sixth@shinta.ro> Date: Fri, 16 Dec 2022 12:45:46 +0800 Subject: [PATCH] treewide: replace replaceChars with replaceStrings replaceChars is a deprecated alias, see https://github.com/NixOS/nixpkgs/commit/05a2dfd6744cdc6ab0b57f8ab866cc686b05f519 for details. --- modules/programs/firefox.nix | 2 +- modules/services/imapnotify.nix | 2 +- modules/systemd.nix | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/programs/firefox.nix b/modules/programs/firefox.nix index 06c9aac7..a2eebdb4 100644 --- a/modules/programs/firefox.nix +++ b/modules/programs/firefox.nix @@ -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 diff --git a/modules/services/imapnotify.nix b/modules/services/imapnotify.nix index 6a464ec8..0197ec54 100644 --- a/modules/services/imapnotify.nix +++ b/modules/services/imapnotify.nix @@ -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); diff --git a/modules/systemd.nix b/modules/systemd.nix index 6abc2460..e4c36ae4 100644 --- a/modules/systemd.nix +++ b/modules/systemd.nix @@ -8,7 +8,7 @@ let # From mkPathSafeName = - lib.replaceChars [ "@" ":" "\\" "[" "]" ] [ "-" "-" "-" "" "" ]; + lib.replaceStrings [ "@" ":" "\\" "[" "]" ] [ "-" "-" "-" "" "" ]; enabled = cfg.services != { } # \ || cfg.slices != { } # \