2022-04-27 01:17:51 +03:00
|
|
|
{ lib, config, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.progs.himalaya;
|
2022-05-24 10:58:09 +03:00
|
|
|
|
|
|
|
devHimalaya = pkgs.himalaya.overrideAttrs (oldAttrs: {
|
|
|
|
src = builtins.fetchGit {
|
|
|
|
url = "https://github.com/soywod/himalaya.git";
|
|
|
|
ref = "development";
|
|
|
|
rev = "ba8ef9adf6effc40674765f995d19e9cfd1a8636";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
bin = "${devHimalaya}/bin/himalaya";
|
2022-04-27 01:17:51 +03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options.progs.himalaya = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = "Add himalaya with my personal configuration";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.himalaya = {
|
|
|
|
enable = true;
|
2022-05-24 10:58:09 +03:00
|
|
|
package = devHimalaya;
|
2022-04-27 01:17:51 +03:00
|
|
|
settings = {
|
2022-05-11 18:23:12 +03:00
|
|
|
default-page-size = 20;
|
2022-04-27 01:17:51 +03:00
|
|
|
downloads-dir = "${config.home.homeDirectory}/downloads/email";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.zsh.shellAliases = mkIf config.shell.zsh.enable {
|
|
|
|
him = bin;
|
|
|
|
himp = "${bin} -a personal";
|
|
|
|
himf = "${bin} -a family";
|
|
|
|
himw = "${bin} -a work";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|