2022-12-21 14:18:03 -07:00
|
|
|
{ config, lib, ... }: {
|
2022-05-10 23:45:50 -04:00
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
options.mail.himalaya.enable = lib.mkEnableOption "Himalaya email.";
|
|
|
|
|
|
|
|
config = lib.mkIf config.mail.himalaya.enable {
|
2022-05-10 23:45:50 -04:00
|
|
|
|
|
|
|
home-manager.users.${config.user} = {
|
|
|
|
|
|
|
|
programs.himalaya = { enable = true; };
|
2022-10-30 13:57:14 -04:00
|
|
|
accounts.email.accounts.home.himalaya = {
|
2022-05-16 22:05:21 -04:00
|
|
|
enable = true;
|
2022-12-06 10:03:06 -07:00
|
|
|
backend = "imap";
|
|
|
|
sender = "smtp";
|
2022-10-30 13:57:14 -04:00
|
|
|
settings = {
|
|
|
|
downloads-dir = config.userDirs.download;
|
|
|
|
smtp-insecure = true;
|
2022-04-28 22:55:42 -04:00
|
|
|
};
|
|
|
|
};
|
2022-05-10 23:45:50 -04:00
|
|
|
|
|
|
|
programs.fish.shellAbbrs = { hi = "himalaya"; };
|
|
|
|
|
2022-04-28 22:55:42 -04:00
|
|
|
};
|
2022-05-10 23:45:50 -04:00
|
|
|
|
2022-04-28 22:55:42 -04:00
|
|
|
};
|
|
|
|
}
|