mirror of
https://github.com/nmasur/dotfiles
synced 2025-01-31 13:22:04 +00:00
34 lines
525 B
Nix
34 lines
525 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
cfg = config.nmasur.presets.programs.himalaya;
|
||
|
in
|
||
|
|
||
|
{
|
||
|
|
||
|
options.nmasur.presets.programs.himalaya.enable = lib.mkEnableOption "Himalaya email CLI";
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
|
||
|
programs.himalaya = {
|
||
|
enable = true;
|
||
|
};
|
||
|
accounts.email.accounts.home.himalaya = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
downloads-dir = config.userDirs.download;
|
||
|
smtp-insecure = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
programs.fish.shellAbbrs = {
|
||
|
hi = "himalaya";
|
||
|
};
|
||
|
|
||
|
};
|
||
|
}
|