replace strings of replacechars with replacestrings

This commit is contained in:
notgne2 2022-12-27 09:35:30 -07:00
parent b22c705da6
commit 1e9a7f032b
Signed by: notgne2
SSH Key Fingerprint: SHA256:qlFCAimT/PvNIG3u+aYT9pIqFCWgu6sNsWjpV1vHLIE
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ in {
xsession.windowManager.i3.config.fonts = [cfg.font.name];
programs.neovim.extraConfig = ''
set guifont=${lib.replaceChars [" "] ["\\ "] cfg.font.name}:h${toString (cfg.font.size + 0.5)}
set guifont=${lib.replaceStrings [" "] ["\\ "] cfg.font.name}:h${toString (cfg.font.size + 0.5)}
'';
})
(mkIf (cfg.enable && cfg.plasma) {

View File

@ -7,7 +7,7 @@
with lib; let
cfg = config.services.ezwg;
peerNameReplacement = lib.replaceChars ["/" "-" " " "+" "="] [
peerNameReplacement = lib.replaceStrings ["/" "-" " " "+" "="] [
"-"
"\\x2d"
"\\x20"