35 lines
725 B
Nix
35 lines
725 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.progs.himalaya;
|
|
bin = "~/repos/himalaya/target/release/himalaya";
|
|
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;
|
|
settings = {
|
|
default-page-size = 20;
|
|
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";
|
|
};
|
|
};
|
|
}
|
|
|