From 2b6aa3798359fd3c65eef3063bfdc7b42feb9094 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Sat, 12 Oct 2024 14:03:49 +0200 Subject: Set up email --- share/cfg/default.nix | 1 + share/cfg/email.nix | 20 ++++++++++++++++++++ share/hm-modules/hyprdesktop.nix | 2 ++ 3 files changed, 23 insertions(+) create mode 100644 share/cfg/email.nix diff --git a/share/cfg/default.nix b/share/cfg/default.nix index 902c43f..3dba82f 100644 --- a/share/cfg/default.nix +++ b/share/cfg/default.nix @@ -16,5 +16,6 @@ ./jujutsu.nix ./emacs.nix ./foot.nix + ./email.nix ]; } diff --git a/share/cfg/email.nix b/share/cfg/email.nix new file mode 100644 index 0000000..6654c58 --- /dev/null +++ b/share/cfg/email.nix @@ -0,0 +1,20 @@ +{ ... }: +{ + accounts.email.accounts = { + "Personal" = rec { + primary = true; + realName = "Miran Bastaja"; + address = "miranbastaja@sorre.xyz"; + userName = address; + aerc = { + enable = true; + extraAccounts = { + source-cred-cmd = "pass email/${address}"; + }; + }; + imap.host = "imap.migadu.com"; + smtp.host = "smtp.migadu.com"; + }; + }; + programs.aerc.extraConfig.general.unsafe-accounts-conf = true; +} diff --git a/share/hm-modules/hyprdesktop.nix b/share/hm-modules/hyprdesktop.nix index 7937c88..8378a3b 100644 --- a/share/hm-modules/hyprdesktop.nix +++ b/share/hm-modules/hyprdesktop.nix @@ -95,6 +95,7 @@ in # TUI/GUI programs thunderbird # email client + aerc # email client nsxiv # image viewer signal-desktop qbittorrent # bittorrent client @@ -154,6 +155,7 @@ in programs.waybar.enable = true; programs.firefox.enable = true; programs.tofi.enable = true; + programs.aerc.enable = true; programs.gallery-dl.enable = true; -- cgit v1.3.1