diff options
Diffstat (limited to 'modules/communication/neomutt/lib.nix')
| -rw-r--r-- | modules/communication/neomutt/lib.nix | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/modules/communication/neomutt/lib.nix b/modules/communication/neomutt/lib.nix index 253ada8..7b85e5e 100644 --- a/modules/communication/neomutt/lib.nix +++ b/modules/communication/neomutt/lib.nix @@ -1,20 +1,14 @@ # some basic common utility functions for neomutt { lib, ... }: { - mbsyncNamesFromName = - name: + mbsyncGroupNames = + accountName: let - channelNameBase = lib.replaceStrings [ "@" "." ] [ "-" "_" ] name; + base = lib.replaceStrings [ "@" "." ] [ "-" "_" ] accountName; in { - base = channelNameBase; - channels = { - full = "${channelNameBase}-full"; - quick = "${channelNameBase}-quick"; - }; - servers = { - remote = "${channelNameBase}-remote"; - local = "${channelNameBase}-local"; - }; + inherit base; + full = "${base}-full"; + quick = "${base}-quick"; }; } |
