aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/default.nix2
-rw-r--r--modules/email/default.nix31
-rw-r--r--modules/global.nix1
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;