From ff2df5f592fec36de6e9842bfc12a6d7347aa86e Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 16 Nov 2024 14:26:17 -0800 Subject: [PATCH] feat(home): Eza --- homes/x86_64-linux/marley@nyx/default.nix | 1 + modules/home/programs/eza/default.nix | 33 +++++++++++++++++++++++ old/home/programs/eza.nix | 18 ------------- 3 files changed, 34 insertions(+), 18 deletions(-) create mode 100644 modules/home/programs/eza/default.nix delete mode 100644 old/home/programs/eza.nix diff --git a/homes/x86_64-linux/marley@nyx/default.nix b/homes/x86_64-linux/marley@nyx/default.nix index e6aad8e..1736b53 100644 --- a/homes/x86_64-linux/marley@nyx/default.nix +++ b/homes/x86_64-linux/marley@nyx/default.nix @@ -20,6 +20,7 @@ in cava = enabled; cheat = enabled; curl = enabled; + eza = enabled; fish = enabled; journalctl = enabled; neo = enabled; diff --git a/modules/home/programs/eza/default.nix b/modules/home/programs/eza/default.nix new file mode 100644 index 0000000..58bc458 --- /dev/null +++ b/modules/home/programs/eza/default.nix @@ -0,0 +1,33 @@ +{ + lib, + config, + namespace, + ... +}: +let + inherit (lib) mkIf; + inherit (lib.${namespace}) mkEnableModule; + + cfg = config.${namespace}.programs.eza; +in +{ + options = mkEnableModule "programs.eza"; + + config = mkIf cfg.enable { + programs.eza = { + enable = true; + + git = true; + icons = "always"; + colors = "always"; + + extraOptions = [ + "--all" + "--sort=name" + "--group-directories-first" + "--header" + "--group" + ]; + }; + }; +} diff --git a/old/home/programs/eza.nix b/old/home/programs/eza.nix deleted file mode 100644 index a35d549..0000000 --- a/old/home/programs/eza.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ ... }: -{ - programs.eza = { - enable = true; - - git = true; - icons = "always"; - colors = "always"; - - extraOptions = [ - "--all" - "--sort=name" - "--group-directories-first" - "--header" - "--group" - ]; - }; -}