diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-12-03 21:19:39 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-12-03 21:49:54 -0600 |
| commit | 61f3db56410f41d5249c88e44db60d9713dae26d (patch) | |
| tree | 49c2d5d5e4da331d139cfdc6034c0dba5980271b /home/mail/default.nix | |
| parent | 854f5ee287eb66db5a0713e2f4fac56794e3d735 (diff) | |
home: big refactor
Diffstat (limited to 'home/mail/default.nix')
| -rw-r--r-- | home/mail/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/home/mail/default.nix b/home/mail/default.nix index 06d1225..f070b2f 100644 --- a/home/mail/default.nix +++ b/home/mail/default.nix @@ -1,6 +1,11 @@ { config, lib, pkgs, ... }: -with lib; { +with lib; let + cfg = config.local.mail; +in +{ options.local.mail = with types; { + enable = mkEnableOption "mail"; + address = mkOption { type = str; }; @@ -12,7 +17,7 @@ with lib; { sieve.enable = mkEnableOption "sieve filter"; }; - config = mkIf (!config.home.isolation.active) { + config = mkIf cfg.enable { accounts.email = { maildirBasePath = "mail"; |
