feat: add eza module
This commit is contained in:
parent
8dbf6d17d3
commit
57cd092fef
35
modules/home/applications/eza.nix
Normal file
35
modules/home/applications/eza.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
cfg = config.ataraxia.programs.eza;
|
||||||
|
|
||||||
|
catpuccin-theme = pkgs.fetchurl {
|
||||||
|
url = "https://github.com/eza-community/eza-themes/raw/7465d04d9834f94b56943024354cf61d2e67efe4/themes/catppuccin.yml";
|
||||||
|
hash = "sha256-Db7QrlhhU7rZk2IVVfGGRS5JEue6itBzoa77pmKE7EI=";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.ataraxia.programs.eza = {
|
||||||
|
enable = mkEnableOption "Enable eza program";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.eza = {
|
||||||
|
enable = true;
|
||||||
|
colors = "auto";
|
||||||
|
extraOptions = [
|
||||||
|
"--group-directories-first"
|
||||||
|
"--header"
|
||||||
|
];
|
||||||
|
git = true;
|
||||||
|
icons = "auto";
|
||||||
|
# TODO: change in catpuccin theme module, not here
|
||||||
|
theme = catpuccin-theme;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -42,6 +42,7 @@ in
|
|||||||
ataraxia.defaults.locale.enable = mkDefault true;
|
ataraxia.defaults.locale.enable = mkDefault true;
|
||||||
ataraxia.defaults.zsh.enable = mkDefault true;
|
ataraxia.defaults.zsh.enable = mkDefault true;
|
||||||
ataraxia.programs.direnv.enable = mkDefault true;
|
ataraxia.programs.direnv.enable = mkDefault true;
|
||||||
|
ataraxia.programs.eza.enable = mkDefault true;
|
||||||
ataraxia.security.pass-secret-service.enable = mkDefault true;
|
ataraxia.security.pass-secret-service.enable = mkDefault true;
|
||||||
ataraxia.security.password-store.enable = mkDefault true;
|
ataraxia.security.password-store.enable = mkDefault true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user