dotfiles/modules/common/mail/himalaya.nix

27 lines
531 B
Nix
Raw Permalink Normal View History

2024-04-20 13:42:06 +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} = {
2024-04-20 13:42:06 +00:00
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-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
2024-04-20 13:42:06 +00:00
programs.fish.shellAbbrs = {
hi = "himalaya";
};
2022-04-29 02:55:42 +00:00
};
};
}