-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
hm-module.nix
43 lines (34 loc) · 897 Bytes
/
hm-module.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
self: {
config,
lib,
pkgs,
...
}:
with lib; {
meta.maintainers = [maintainers.isabelroses];
options.programs.bellado = {
enable = mkEnableOption "A fast and once simple cli todo tool";
enableAliases = mkEnableOption "recommended bellado aliases";
};
config = let
cfg = config.programs.bellado;
aliases =
{
bellado = "bellado";
}
// optionalAttrs cfg.enableAliases {
bel = "bellado";
bell = "bellado -l";
bella = "bellado -la";
bellc = "bellado -lc";
};
in
mkIf cfg.enable {
home.packages = [self.packages.${pkgs.stdenv.hostPlatform.system}.default];
programs.bash.shellAliases = aliases;
programs.zsh.shellAliases = aliases;
programs.fish.shellAliases = aliases;
programs.ion.shellAliases = aliases;
programs.nushell.shellAliases = aliases;
};
}