add direnv and direnv hooks

This commit is contained in:
Aditya 2023-06-22 19:28:40 +05:30
parent 6755f9e15c
commit 5259cdcf82
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU

View file

@ -58,7 +58,7 @@
nextcloud-client duf neovim foliate mpv obsidian dino aria2 bitwarden kitty-themes p7zip nextcloud-client duf neovim foliate mpv obsidian dino aria2 bitwarden kitty-themes p7zip
tdesktop libreoffice-fresh jetbrains-mono yakuake krita filelight inkscape yt-dlp ranger tdesktop libreoffice-fresh jetbrains-mono yakuake krita filelight inkscape yt-dlp ranger
libsForQt5.kwallet libsForQt5.kwallet-pam libsForQt5.kwalletmanager libsForQt5.ksshaskpass libsForQt5.kwallet libsForQt5.kwallet-pam libsForQt5.kwalletmanager libsForQt5.ksshaskpass
cachix cachix direnv
]; ];
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [
@ -69,6 +69,7 @@
enable = false; enable = false;
bashrcExtra = '' bashrcExtra = ''
. ~/.bashrc . ~/.bashrc
eval "$(direnv hook bash)"
''; '';
}; };
@ -77,11 +78,15 @@
enableCompletion = true; enableCompletion = true;
enableAutosuggestions = true; enableAutosuggestions = true;
enableSyntaxHighlighting = true; enableSyntaxHighlighting = true;
# enableBashCompletion = true;
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
theme = "ys"; theme = "ys";
plugins = ["git" "colored-man-pages" "extract" "sudo"]; plugins = ["git" "colored-man-pages" "extract" "sudo"];
}; };
initExtra = ''
eval "$(direnv hook zsh)"
'';
}; };
programs.kitty = { programs.kitty = {