diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 04:02:19 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 04:02:19 +0530 |
| commit | 5ea8c30b7b82d4c1e7164541892066b1f24f7d22 (patch) | |
| tree | ad9b994cc5415f63bae1f2342f520756d43c67ce /modules/communication/neomutt/account/default.nix | |
| parent | ad96214c9ab94bce925000a6059e3c68e2ff6a22 (diff) | |
| parent | 748669e19daa3afc8f0cfe10eedc19ae9766ed2c (diff) | |
| download | home-manager-config-5ea8c30b7b82d4c1e7164541892066b1f24f7d22.tar.gz home-manager-config-5ea8c30b7b82d4c1e7164541892066b1f24f7d22.zip | |
Merge branch 'massive-refactoring'
Diffstat (limited to 'modules/communication/neomutt/account/default.nix')
| -rw-r--r-- | modules/communication/neomutt/account/default.nix | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/modules/communication/neomutt/account/default.nix b/modules/communication/neomutt/account/default.nix index e2d92eb..61256e1 100644 --- a/modules/communication/neomutt/account/default.nix +++ b/modules/communication/neomutt/account/default.nix @@ -21,17 +21,19 @@ config = lib.mkIf config.communication.neomutt.enable { accounts.email.accounts = lib.mapAttrs (accountName: accountInformation: { - inherit (accountInformation) realName address primary; + inherit (accountInformation) address primary; + + realName = accountInformation.real-name; userName = - if accountInformation.userName != null then - accountInformation.userName + if accountInformation.username != null then + accountInformation.username else accountInformation.address; passwordCommand = - if accountInformation.passwordGopassSecret != null then - "${lib.getExe config.security.gopass.package} -o ${accountInformation.passwordGopassSecret}" + if accountInformation.password-gopass-secret != null then + "${lib.getExe config.security.gopass.package} -o ${accountInformation.password-gopass-secret}" else null; @@ -50,7 +52,7 @@ neomutt = { enable = true; - mailboxType = accountInformation.neomutt.mailboxType; + mailboxType = accountInformation.neomutt.mailbox-type; extraConfig = accountInformation.neomutt.extraConfig; }; @@ -71,7 +73,7 @@ enable = true; neomutt = { enable = true; - virtualMailboxes = accountInformation.notmuch.neomutt.virtualMailboxes; + virtualMailboxes = accountInformation.notmuch.neomutt.virtual-mailboxes; }; }; @@ -80,7 +82,7 @@ port = accountInformation.imap.port; tls = { enable = accountInformation.imap.tls.enable; - useStartTls = accountInformation.imap.tls.useStartTls; + useStartTls = accountInformation.imap.tls.use-start-tls; }; }; @@ -89,14 +91,14 @@ port = accountInformation.smtp.port; tls = { enable = accountInformation.smtp.tls.enable; - useStartTls = accountInformation.smtp.tls.useStartTls; + useStartTls = accountInformation.smtp.tls.use-start-tls; }; }; gpg = lib.optionalAttrs (accountInformation.gpg.key != null) { key = accountInformation.gpg.key; - signByDefault = accountInformation.gpg.signByDefault; - encryptByDefault = accountInformation.gpg.encryptByDefault; + signByDefault = accountInformation.gpg.sign-by-default; + encryptByDefault = accountInformation.gpg.encrypt-by-default; }; signature = @@ -105,7 +107,7 @@ { text = accountInformation.signature.text; command = accountInformation.signature.command; - showSignature = accountInformation.signature.showSignature; + showSignature = accountInformation.signature.show-signature; }; }) (lib.filterAttrs (n: a: a.enable) config.communication.neomutt.accounts); }; |
