diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-06-05 20:53:14 -0400 |
|---|---|---|
| committer | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-06-05 21:10:04 -0400 |
| commit | 6a7337ab1ce0b1e5bf89600d157c315709907781 (patch) | |
| tree | 6d4a92549865ddc40029aca7d80569a5a584d1b2 | |
| parent | 87d63b49da0c14c8cbee1cf7c08736047d268129 (diff) | |
| download | home-6a7337ab1ce0b1e5bf89600d157c315709907781.tar.gz | |
modules/email: init
| -rw-r--r-- | modules/default.nix | 2 | ||||
| -rw-r--r-- | modules/email/default.nix | 31 | ||||
| -rw-r--r-- | modules/global.nix | 1 |
3 files changed, 34 insertions, 0 deletions
diff --git a/modules/default.nix b/modules/default.nix index 72849ae..5eacabf 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -1,6 +1,7 @@ { ... }: { imports = [ + ./aerc.nix ./scheme ./foot.nix ./mako.nix @@ -16,6 +17,7 @@ ./neovim ./qutebrowser ./services + ./email ./gpg ./pass ./colors diff --git a/modules/email/default.nix b/modules/email/default.nix new file mode 100644 index 0000000..e3566c2 --- /dev/null +++ b/modules/email/default.nix @@ -0,0 +1,31 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.email; +in +{ + options.modules.email = { + enable = lib.mkEnableOption "email"; + }; + + config = lib.mkIf cfg.enable { + accounts.email.accounts.personal = { + address = "stefan@s00.xyz"; + primary = true; + realName = "Stefan Weigl-Bosker"; + userName = "stefan"; + passwordCommand = "${pkgs.pass}/bin/pass show email/stefan@s00.xyz"; + aerc = { + enable = true; + }; + imap = { + host = "imap.s00.xyz"; + }; + smtp = { + host = "smtp.s00.xyz"; + port = 465; + tls.enable = true; + }; + thunderbird.enable = true; + }; + }; +} diff --git a/modules/global.nix b/modules/global.nix index 32a68f5..72b29cf 100644 --- a/modules/global.nix +++ b/modules/global.nix @@ -45,6 +45,7 @@ in qutebrowser = { wrapWithNixGL = cfg.notNixOS; }; + email.enable = true; zsh.enable = true; tmux.enable = true; fzf.enable = true; |