aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-01-04 15:29:35 -0300
committerEuAndreh <eu@euandre.org>2022-01-04 15:29:35 -0300
commitc1b9b3aeef1dea2f79581e24c6f129002adae3d2 (patch)
treebb027126a6bdf19e6e7fb4376c21df777e8e6df3
parentconfiguration.nix: Update address of overlay in package-repository, stick to ... (diff)
downloaddotfiles-c1b9b3aeef1dea2f79581e24c6f129002adae3d2.tar.gz
dotfiles-c1b9b3aeef1dea2f79581e24c6f129002adae3d2.tar.xz
configuration.nix: Inline msmtp configuration
-rw-r--r--configuration.nix42
1 files changed, 34 insertions, 8 deletions
diff --git a/configuration.nix b/configuration.nix
index 9ed9dbde..a6f5f4d9 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -366,19 +366,45 @@ in {
autojump.enable = true;
msmtp = {
enable = true;
- extraConfig = builtins.readFile /home/andreh/.config/msmtp/config;
- setSendmail = false;
+ extraConfig = ''
+ defaults
+ auth on
+ tls on
+ port 587
+ syslog on
+
+ account euandreh
+ host box.euandre.org
+ from eu@euandre.org
+ user eu@euandre.org
+ # msmtp in cron's MAILTO environment doesn't include PASSWORD_STORE_DIR
+ passwordeval pass show Mail-in-a-Box
+
+ account euandrehxyz
+ host mail.euandreh.xyz
+ from eu@euandreh.xyz
+ user eu@euandreh.xyz
+ passwordeval pass show VPS/kuvira/mail
+
+ account euandreharrobaponto
+ host mail.arrobaponto.org
+ from euandreh@arrobaponto.org
+ user euandreh@arrobaponto.org
+ passwordeval pass show VPS/toph/mail
+
+ account nubank
+ host smtp.gmail.com
+ from andre.moreira@nubank.com.br
+ user andre.moreira@nubank.com.br
+ passwordeval pass show andre.moreira@nubank.com.br
+
+ account default : euandreh
+ '';
};
};
xdg.portal.enable = true;
services = {
-
- mail.sendmailSetuidWrapper = {
- program = "sendmail";
- source = "${pkgs.msmtp}/bin/msmtpq";
- setuid = false;
- setgid = false;
};
blueman.enable = true;