From 57cd092feff7cbde332f93326dc839b8d46cc5e1 Mon Sep 17 00:00:00 2001 From: Dmitriy Kholkin Date: Sat, 7 Jun 2025 21:13:15 +0300 Subject: [PATCH] feat: add eza module --- modules/home/applications/eza.nix | 35 +++++++++++++++++++++++++++++++ modules/home/roles/default.nix | 1 + 2 files changed, 36 insertions(+) create mode 100644 modules/home/applications/eza.nix 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;