blob: be590b47869b512eed1ff4c55f1c80d627e0db24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.nixfiles.modules.eza;
in {
options.nixfiles.modules.eza.enable = mkEnableOption "eza, an alternative to ls";
config = mkIf cfg.enable {
nixfiles.modules.common.shell.aliases = rec {
ls = "eza --smart-group --dereference";
ll = "${ls} --long --grid";
la = "${ll} --header --all";
};
hm.home.packages = [pkgs.eza];
};
}
|