From e54ef2c4cede2945dfbb6baa0b4baf70e453798e Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Tue, 16 Apr 2024 13:30:03 -0500 Subject: [PATCH] added email clients. --- hosts/archlaptop-vm/default.nix | 1 + hosts/gabe-archlaptop.nix | 1 + hosts/gabe-gv-workstation.nix | 1 + modules/home-manager/email.nix | 23 +++++++++++++++++++++++ 4 files changed, 26 insertions(+) create mode 100644 modules/home-manager/email.nix diff --git a/hosts/archlaptop-vm/default.nix b/hosts/archlaptop-vm/default.nix index 28ac1dc..1cada34 100644 --- a/hosts/archlaptop-vm/default.nix +++ b/hosts/archlaptop-vm/default.nix @@ -85,6 +85,7 @@ inputs.nixpkgs.lib.nixosSystem { ../../modules/home-manager/terminal ../../modules/home-manager/nvim ../../modules/home-manager + ../modules/home-manager/email.nix inputs.nixvim.homeManagerModules.nixvim ]; }; diff --git a/hosts/gabe-archlaptop.nix b/hosts/gabe-archlaptop.nix index 2fb8b76..85f241a 100644 --- a/hosts/gabe-archlaptop.nix +++ b/hosts/gabe-archlaptop.nix @@ -30,5 +30,6 @@ ../modules/home-manager/syncthing.nix ../modules/home-manager/beets.nix ../modules/home-manager/mpd/mpd.nix + ../modules/home-manager/email.nix ]; } diff --git a/hosts/gabe-gv-workstation.nix b/hosts/gabe-gv-workstation.nix index f9e0d98..440f608 100644 --- a/hosts/gabe-gv-workstation.nix +++ b/hosts/gabe-gv-workstation.nix @@ -31,5 +31,6 @@ ../modules/home-manager/nvim ../modules/home-manager ../modules/home-manager/syncthing.nix + ../modules/home-manager/email.nix ]; } diff --git a/modules/home-manager/email.nix b/modules/home-manager/email.nix new file mode 100644 index 0000000..710ab2e --- /dev/null +++ b/modules/home-manager/email.nix @@ -0,0 +1,23 @@ +{ + config, + pkgs, + lib, + ... +}: { + programs.himalaya.enable = true; + + programs.aerc = { + enable = true; + extraConfig.general.unsafe-accounts-conf = true; + }; + accounts.email.accounts.gmail = { + address = "gabevenberg@gmail.com"; + primary = true; + flavor = "gmail.com"; + passwordCommand = "cat ~/keys/plaintext/gmail"; + realName = "Gabe Venberg"; + + himalaya.enable = true; + aerc.enable = true; + }; +}