aboutsummaryrefslogtreecommitdiffstats
path: root/modules/communication/email/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-15 20:32:36 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-15 20:32:36 +0530
commit23616c2e13f63f0262d64538032b98ce83cc0ec2 (patch)
tree3ea56e8c12c6735b5dddb34b5699c59c00066b0f /modules/communication/email/default.nix
parent01aaa7ad39c1fe8af6ffbca31abbab27dbfefc95 (diff)
downloadhome-manager-config-23616c2e13f63f0262d64538032b98ce83cc0ec2.tar.gz
home-manager-config-23616c2e13f63f0262d64538032b98ce83cc0ec2.zip
feat: renamed the options to reflect their changed directory stucture
Renamed the options for the configurations based on the sub-module that they belong to
Diffstat (limited to 'modules/communication/email/default.nix')
-rw-r--r--modules/communication/email/default.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/communication/email/default.nix b/modules/communication/email/default.nix
index 3a57cf0..969403d 100644
--- a/modules/communication/email/default.nix
+++ b/modules/communication/email/default.nix
@@ -1,4 +1,3 @@
-# email - Mbsync and notmuch mail synchronization
{
config,
lib,
@@ -9,15 +8,22 @@ let
mailDir = "${config.home.homeDirectory}/.local/share/mail";
in
{
- options.programs.email = {
+ options.communication.email = {
enable = lib.mkEnableOption "Email suite (mbsync + notmuch)";
+
+ accounts = lib.mkOption {
+ type = lib.types.attrsOf lib.types.anything;
+ default = { };
+ description = "Email accounts. Each attribute name is an account identifier.";
+ };
};
- config = lib.mkIf config.programs.email.enable {
+ config = lib.mkIf config.communication.email.enable {
programs.mbsync.enable = true;
programs.notmuch.enable = true;
accounts.email.maildirBasePath = mailDir;
+ accounts.email.accounts = config.communication.email.accounts;
home.sessionVariables.MAILDIR = mailDir;
};