Skip to content

Commit

Permalink
feat(flake): implement direnv (#6)
Browse files Browse the repository at this point in the history
* feat(flake): add direnv

* fix(zsh): patch 'l' alias
  • Loading branch information
airone01 authored Dec 1, 2024
1 parent 3ee8bc5 commit 7322c55
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions constellations/cassiopeia/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
cli-oh-my-posh
cli-zellij
cli-zsh
core-direnv
core-docker
core-font
core-gh
Expand Down
20 changes: 19 additions & 1 deletion stars/cli/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,31 @@
syntaxHighlighting.enable = true;

shellAliases = {
l = "eza -laag --git --icons";
l = "ll --icons --git -a";
zz = "zellij -l compact";
};

oh-my-zsh = {
enable = true;
plugins = [
"eza"
"git"
"sudo"
"thefuck"
"web-search"
"zoxide"
];
theme = "robbyrussell";
};
};
};
};

packages = with pkgs; [
thefuck
zoxide
];

config = {config, ...}: {
users.users.${config.stars.mainUser}.shell = pkgs.zsh;

Expand Down
12 changes: 12 additions & 0 deletions stars/core/direnv.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
_: {
homeConfig = _: {
programs.direnv = {
enable = true;
nix-direnv.enable = true;
enableBashIntegration = true;
enableFishIntegration = true;
enableNushellIntegration = true;
enableZshIntegration = true;
};
};
}

0 comments on commit 7322c55

Please sign in to comment.