diff options
Diffstat (limited to 'home-manager/modules/programs/getmail.nix')
-rw-r--r-- | home-manager/modules/programs/getmail.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/home-manager/modules/programs/getmail.nix b/home-manager/modules/programs/getmail.nix index 2c3919dcf2f..f83c469ff24 100644 --- a/home-manager/modules/programs/getmail.nix +++ b/home-manager/modules/programs/getmail.nix @@ -49,6 +49,12 @@ let ".getmail/getmail${if a.primary then "rc" else a.name}"; in { + options = { + accounts.email.accounts = mkOption { + type = with types; attrsOf (submodule (import ./getmail-accounts.nix)); + }; + }; + config = mkIf getmailEnabled { home.file = foldl' (a: b: a // b) { } (map (a: { "${renderConfigFilepath a}".text = renderAccountConfig a; }) |