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