diff options
Diffstat (limited to 'modules/communication/neomutt/account/sync-channel.nix')
| -rw-r--r-- | modules/communication/neomutt/account/sync-channel.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/communication/neomutt/account/sync-channel.nix b/modules/communication/neomutt/account/sync-channel.nix index 5af7443..7e538f2 100644 --- a/modules/communication/neomutt/account/sync-channel.nix +++ b/modules/communication/neomutt/account/sync-channel.nix @@ -4,11 +4,15 @@ name, ... }@inputs: +let + + mbsyncNamesFromName = (import ../lib.nix { inherit lib; }).mbsyncNamesFromName; +in { config = lib.mkIf config.enable { neomutt.extraConfig = let - mbsyncNames = (import ../lib.nix inputs).mbsyncNamesFromName name; + mbsyncNames = mbsyncNamesFromName name; in '' macro index,pager gs "<enter-command>set my_wait_key=$wait_key wait_key=no<enter><sync-mailbox><shell-escape>neomutt-sync ${mbsyncNames.channels.quick}<enter><sync-mailbox><enter-command>set wait_key=$my_wait_key<enter>" |
