Change email password command

This commit is contained in:
Kiana Sheibani 2024-02-13 21:37:27 -05:00
parent fcd046b8d1
commit 7dde9341d2

View file

@ -3,6 +3,12 @@ let
maildir = "${config.xdg.dataHome}/mail"; maildir = "${config.xdg.dataHome}/mail";
pass = config.programs.password-store.package; pass = config.programs.password-store.package;
in { in {
programs = {
msmtp.enable = true;
mbsync.enable = true;
mu.enable = true;
};
accounts.email = { accounts.email = {
maildirBasePath = maildir; maildirBasePath = maildir;
accounts = { accounts = {
@ -10,7 +16,7 @@ in {
address = email; address = email;
userName = email; userName = email;
flavor = "gmail.com"; flavor = "gmail.com";
passwordCommand = "${pass}/bin/pass Email/gmail.com"; passwordCommand = "${pass}/bin/pass Email/GmailApp/kiana.a.sheibani@gmail.com";
primary = true; primary = true;
mbsync = { mbsync = {
enable = true; enable = true;
@ -24,11 +30,6 @@ in {
}; };
}; };
programs = {
msmtp.enable = true;
mbsync.enable = true;
};
services = { services = {
mbsync = { mbsync = {
enable = true; enable = true;