diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 03:42:25 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 03:42:25 +0530 |
| commit | 30f8fea050f3242f0e6a2072779e706b5c8ceaf1 (patch) | |
| tree | a02b517bd112d4e91fab15166a4866bff252c2d3 /modules/file-management/eza | |
| parent | ad96214c9ab94bce925000a6059e3c68e2ff6a22 (diff) | |
| download | home-manager-config-30f8fea050f3242f0e6a2072779e706b5c8ceaf1.tar.gz home-manager-config-30f8fea050f3242f0e6a2072779e706b5c8ceaf1.zip | |
refactor(modules): introduce cfg local bindings and submodule option types
Diffstat (limited to 'modules/file-management/eza')
| -rw-r--r-- | modules/file-management/eza/default.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/file-management/eza/default.nix b/modules/file-management/eza/default.nix index f22b435..b4f2b3a 100644 --- a/modules/file-management/eza/default.nix +++ b/modules/file-management/eza/default.nix @@ -1,5 +1,13 @@ # Modern ls replacement with icons and colors -{ config, lib, ... }: +{ + config, + lib, + pkgs, + ... +}: +let + cfg = config.file-management.eza; +in { options.file-management.eza = { enable = lib.mkEnableOption "Enables eza."; @@ -12,7 +20,7 @@ }; }; - config = lib.mkIf config.file-management.eza.enable { + config = lib.mkIf cfg.enable { programs.eza = { enable = true; icons = "always"; |
