aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/system/programs/eza.nix
blob: 52c290dbc3e65c482da5b7fb82c2e76eaa74dd0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  pkgs,
  lib,
  config,
  ...
}: let
  cfg = config.collinux.terminal.programs.eza;
in
  lib.mkIf cfg.enable {
    hjem.users."${config.collinux.user.name}" = {
      files.".config/fish/conf.d/eza.fish".text = ''
        alias ls "eza -A -w 80 --group-directories-first -I '.git*'"
        alias tree "eza -T"
      '';

      packages = [pkgs.eza];
    };
  }