From 3ad03d5c57466a1641eebfb87b297d2c3e9f5435 Mon Sep 17 00:00:00 2001 From: Krzysztof Saczuk Date: Fri, 31 May 2024 09:34:45 +0200 Subject: [PATCH] feat(shell): add `eza` integration --- configuration.nix | 2 +- modules/shell/eza.nix | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 modules/shell/eza.nix diff --git a/configuration.nix b/configuration.nix index c6bb692..39aec4e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -138,9 +138,9 @@ direnv.enable = true; starship.enable = true; zoxide.enable = true; + eza.enable = true; fish = { enable = true; - direnv.enable = true; default = true; }; }; diff --git a/modules/shell/eza.nix b/modules/shell/eza.nix new file mode 100644 index 0000000..6bb46cf --- /dev/null +++ b/modules/shell/eza.nix @@ -0,0 +1,25 @@ +{ + config, + lib, + username, + ... +}: +with lib; +with lib.my; let + cfg = config.modules.shell.eza; +in { + options.modules.shell.eza = { + enable = mkEnableOption "eza shell integration"; + }; + + config = mkIf (cfg.enable) { + home-manager.users.${username} = { + programs.eza = { + enable = true; + enableAliases = true; + git = config.modules.dev.git.enable; + icons = true; + }; + }; + }; +}