Disable work email on personal machines

Outlook update seems to have broken davmail outside the VPN, so
removed from personal computers.

Removed accountEnabled let var and just tie account activation to mu
status.
This commit is contained in:
Evie Litherland-Smith 2024-03-09 09:24:59 +00:00
parent 82434a5b58
commit 268418012d
3 changed files with 18 additions and 16 deletions

View file

@ -13,7 +13,6 @@
proton = let
host = "127.0.0.1";
tls.enable = false;
accountEnabled = true;
in rec {
inherit realName;
primary = lib.mkDefault true;
@ -30,16 +29,16 @@
aliases = ["evie@xenia.me.uk" "evie@litherlandsmith.slmail.me"];
userName = address;
passwordCommand = "${pkgs.pass}/bin/pass show mbsync/${hostName}/proton | head -n1";
mu.enable = lib.mkDefault accountEnabled;
mu.enable = lib.mkDefault true;
msmtp = {
enable = lib.mkDefault accountEnabled;
enable = mu.enable;
extraConfig = {
tls = "off";
auth = "login";
};
};
mbsync = {
enable = lib.mkDefault accountEnabled;
enable = mu.enable;
create = "both";
expunge = "both";
remove = "both";
@ -48,9 +47,7 @@
extraConfig.account.AuthMechs = "LOGIN";
};
};
icloud = let
accountEnabled = true;
in rec {
icloud = rec {
inherit realName;
primary = lib.mkDefault false;
maildir.path = "iCloud";
@ -59,10 +56,10 @@
address = "e.litherlandsmith@icloud.com";
userName = address;
passwordCommand = "${pkgs.pass}/bin/pass show mbsync/${hostName}/icloud | head -n1";
mu.enable = lib.mkDefault accountEnabled;
msmtp.enable = lib.mkDefault accountEnabled;
mu.enable = lib.mkDefault true;
msmtp.enable = mu.enable;
mbsync = {
enable = lib.mkDefault accountEnabled;
enable = mu.enable;
create = "both";
expunge = "both";
remove = "both";
@ -73,7 +70,6 @@
outlook = let
host = "127.0.0.1";
tls.enable = false;
accountEnabled = true;
in rec {
inherit realName;
primary = lib.mkDefault false;
@ -90,16 +86,16 @@
aliases = ["elitherl@jet.uk"];
userName = address;
passwordCommand = "${pkgs.pass}/bin/pass show mbsync/${hostName}/outlook | head -n1";
mu.enable = lib.mkDefault accountEnabled;
mu.enable = lib.mkDefault false;
msmtp = {
enable = lib.mkDefault accountEnabled;
enable = mu.enable;
extraConfig = {
tls = "off";
auth = "login";
};
};
mbsync = {
enable = lib.mkDefault accountEnabled;
enable = mu.enable;
create = "both";
expunge = "both";
remove = "both";

View file

@ -3,7 +3,10 @@
programs.git.userEmail = "evie.litherland-smith@ukaea.uk";
accounts.email.accounts = {
proton.primary = false;
outlook.primary = true;
outlook = {
primary = true;
mu.enable = true;
};
};
wayland.windowManager.hyprland.settings = {
misc.force_default_wallpaper = 0;

View file

@ -2,7 +2,10 @@
programs.git.userEmail = "evie.litherland-smith@ukaea.uk";
accounts.email.accounts = {
proton.primary = false;
outlook.primary = true;
outlook = {
primary = true;
mu.enable = true;
};
};
wayland.windowManager.hyprland.settings = {
misc.force_default_wallpaper = 0;