nix-config/configs/home-manager/email.nix

38 lines
742 B
Nix
Raw Normal View History

2024-04-16 13:30:03 -05:00
{
config,
pkgs,
lib,
...
}: {
home.packages = with pkgs; [
w3m
];
2024-04-16 13:30:03 -05:00
programs.aerc = {
enable = true;
extraConfig = {
general.unsafe-accounts-conf = true;
viwer = {
pager = "less";
};
filters = {
"text/plain" = "colorize";
"text/html" = "html | colorize";
};
};
2024-04-16 13:30:03 -05:00
};
programs.himalaya.enable = true;
accounts.email.accounts.gmail = lib.mkIf (lib.hasAttrByPath ["sops" "secrets" "gmail-password"] config) {
2024-04-16 13:30:03 -05:00
address = "gabevenberg@gmail.com";
primary = true;
flavor = "gmail.com";
2024-06-04 11:00:43 -05:00
passwordCommand = "cat ${config.sops.secrets.gmail-password.path}";
2024-04-16 13:30:03 -05:00
realName = "Gabe Venberg";
himalaya.enable = true;
aerc.enable = true;
};
}