about summary refs log tree commit diff
path: root/modules/eza.nix
blob: 96b7d4c45b3166771342a992608f11f256187af3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  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 ];
  };
}

Consider giving Nix/NixOS a try! <3