Skip to content

Commit

Permalink
feat(shell): add eza integration
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuciael committed May 31, 2024
1 parent 63a83a8 commit 3ad03d5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@
direnv.enable = true;
starship.enable = true;
zoxide.enable = true;
eza.enable = true;
fish = {
enable = true;
direnv.enable = true;
default = true;
};
};
Expand Down
25 changes: 25 additions & 0 deletions modules/shell/eza.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
config,
lib,
username,
...
}:
with lib;
with lib.my; let
cfg = config.modules.shell.eza;
in {
options.modules.shell.eza = {
enable = mkEnableOption "eza shell integration";
};

config = mkIf (cfg.enable) {
home-manager.users.${username} = {
programs.eza = {
enable = true;
enableAliases = true;
git = config.modules.dev.git.enable;
icons = true;
};
};
};
}

0 comments on commit 3ad03d5

Please sign in to comment.