summaryrefslogtreecommitdiff
path: root/modules/packages/eza.nix
diff options
context:
space:
mode:
authorscouckel <james.krinsky@gmail.com>2026-04-21 03:13:51 -0500
committerscouckel <james.krinsky@gmail.com>2026-04-21 03:13:51 -0500
commit6a45dc5e0705c7d2905446596b3d79f708fb9b12 (patch)
tree5c8d4af6c9e4e4b7c3fbb8757e3eefa5c9616448 /modules/packages/eza.nix
parent79c119a73c0b5a98eeccf9f222f425394df1328d (diff)
update + 1000 changes that will bring glory to the han dynasty
Diffstat (limited to 'modules/packages/eza.nix')
-rw-r--r--modules/packages/eza.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/modules/packages/eza.nix b/modules/packages/eza.nix
new file mode 100644
index 0000000..ba79c67
--- /dev/null
+++ b/modules/packages/eza.nix
@@ -0,0 +1,33 @@
+{inputs, ...}: {
+ perSystem = {pkgs, ...}: let
+ eza-theme = pkgs.fetchurl {
+ url = "https://raw.githubusercontent.com/eza-community/eza-themes/main/themes/gruvbox-dark.yml";
+ hash = "sha256-6vxzSQw2mq8oh0Es1LYmbbavuN0LFOg4Ch6u1G9dv4w=";
+ };
+
+ eza-config-dir = pkgs.runCommand "eza-config-dir" {} ''
+ mkdir -p $out
+ cp ${eza-theme} $out/theme.yml
+ '';
+ in {
+ packages.eza = inputs.wrappers.lib.wrapPackage {
+ inherit pkgs;
+ package = pkgs.eza;
+ flags = {
+ "--git" = true;
+ "--icons" = "auto";
+ "--color" = "always";
+ "--octal-permissions" = true;
+ "--group-directories-first" = true;
+ "--header" = true;
+ "--total-size" = true;
+ "--time-style" = "long-iso";
+ "--no-permissions" = true;
+ "--long" = true;
+ };
+ env = {
+ EZA_CONFIG_DIR = "${eza-config-dir}";
+ };
+ };
+ };
+}