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" - ]; - }; -}