about summary refs log tree commit diff
path: root/modules/eza.nix
blob: a0163dceaeec7ce4ee658b364ae3fb9b550e6fa6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  config,
  lib,
  pkgs,
  ...
}:
let
  cfg = config.nixfiles.modules.eza;
in
{
  options.nixfiles.modules.eza.enable = lib.mkEnableOption "eza, an alternative to ls";

  config = lib.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 ];
  };
}

Consider giving Nix/NixOS a try! <3