dotfiles/modules/common/mail/himalaya.nix

26 lines
556 B
Nix
Raw Permalink Normal View History

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