diff --git a/modules/home/applications/eza.nix b/modules/home/applications/eza.nix new file mode 100644 index 0000000..bd1f1d1 --- /dev/null +++ b/modules/home/applications/eza.nix @@ -0,0 +1,35 @@ +{ + config, + lib, + pkgs, + ... +}: +let + inherit (lib) mkEnableOption mkIf; + cfg = config.ataraxia.programs.eza; + + catpuccin-theme = pkgs.fetchurl { + url = "https://github.com/eza-community/eza-themes/raw/7465d04d9834f94b56943024354cf61d2e67efe4/themes/catppuccin.yml"; + hash = "sha256-Db7QrlhhU7rZk2IVVfGGRS5JEue6itBzoa77pmKE7EI="; + }; +in +{ + options.ataraxia.programs.eza = { + enable = mkEnableOption "Enable eza program"; + }; + + config = mkIf cfg.enable { + programs.eza = { + enable = true; + colors = "auto"; + extraOptions = [ + "--group-directories-first" + "--header" + ]; + git = true; + icons = "auto"; + # TODO: change in catpuccin theme module, not here + theme = catpuccin-theme; + }; + }; +} diff --git a/modules/home/roles/default.nix b/modules/home/roles/default.nix index 5d7f49f..5dd2ab1 100644 --- a/modules/home/roles/default.nix +++ b/modules/home/roles/default.nix @@ -42,6 +42,7 @@ in ataraxia.defaults.locale.enable = mkDefault true; ataraxia.defaults.zsh.enable = mkDefault true; ataraxia.programs.direnv.enable = mkDefault true; + ataraxia.programs.eza.enable = mkDefault true; ataraxia.security.pass-secret-service.enable = mkDefault true; ataraxia.security.password-store.enable = mkDefault true;