Adjust email config for new pass organization

This commit is contained in:
Kiana Sheibani 2024-06-13 16:29:01 -04:00
parent 411e879de1
commit e3a88cb2d0

View file

@ -1,4 +1,4 @@
{ config, pkgs, fullname, email, ... }: { config, pkgs, lib, fullname, email, ... }:
let let
ksumail = "bsheiban@students.kennesaw.edu"; ksumail = "bsheiban@students.kennesaw.edu";
maildir = "${config.xdg.dataHome}/mail"; maildir = "${config.xdg.dataHome}/mail";
@ -18,7 +18,7 @@ in {
address = email; address = email;
userName = email; userName = email;
flavor = "gmail.com"; flavor = "gmail.com";
passwordCommand = "${pass}/bin/pass Email/GmailApp/${email}"; passwordCommand = "${lib.getExe pass} email/GmailApp/${email}";
primary = true; primary = true;
mbsync = { mbsync = {
enable = true; enable = true;
@ -34,7 +34,7 @@ in {
address = ksumail; address = ksumail;
userName = ksumail; userName = ksumail;
flavor = "outlook.office365.com"; flavor = "outlook.office365.com";
passwordCommand = "${pass}/bin/pass Email/${ksumail}"; passwordCommand = "${lib.getExe pass} email/${ksumail}";
mbsync = { mbsync = {
enable = true; enable = true;
create = "both"; create = "both";
@ -51,7 +51,7 @@ in {
services = { services = {
mbsync = { mbsync = {
enable = true; enable = true;
postExec = "${pkgs.mu}/bin/mu index -m ${maildir}"; postExec = "${lib.getExe pkgs.mu} index -m ${maildir}";
}; };
}; };
} }