diff --git a/modules/programs/eza.nix b/modules/programs/eza.nix index 849d8abd3..e71586113 100644 --- a/modules/programs/eza.nix +++ b/modules/programs/eza.nix @@ -6,6 +6,7 @@ }: let inherit (lib) mkOption optionalAttrs types; + yamlFormat = pkgs.formats.yaml { }; in { imports = @@ -102,6 +103,16 @@ in }; package = lib.mkPackageOption pkgs "eza" { nullable = true; }; + + theme = mkOption { + type = yamlFormat.type; + default = { }; + description = '' + Written to {file}`$XDG_CONFIG_HOME/eza/theme.yml` + + See + ''; + }; }; config = @@ -146,6 +157,10 @@ in home.packages = lib.mkIf (cfg.package != null) [ cfg.package ]; + xdg.configFile."eza/theme.yml" = lib.mkIf (cfg.theme != { }) { + source = yamlFormat.generate "eza-theme" cfg.theme; + }; + programs.bash.shellAliases = optionsAlias // optionalAttrs cfg.enableBashIntegration aliases; programs.zsh.shellAliases = optionsAlias // optionalAttrs cfg.enableZshIntegration aliases;