add direnv

This commit is contained in:
Aditya 2024-04-12 17:04:46 +05:30
parent 012154c8cc
commit ad235fe1df
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
2 changed files with 18 additions and 0 deletions

View file

@ -5,6 +5,7 @@
./browsers
./communication
./devel
./direnv
./fonts
./gnome-utils
./kde-utils
@ -24,6 +25,7 @@
bash.enable = lib.mkDefault true;
bat.enable = lib.mkDefault true;
direnv.enable = lib.mkDefault true;
gnome-utils.enable = lib.mkDefault false;
kde-utils.enable = lib.mkDefault true;
kitty.enable = lib.mkDefault true;

View file

@ -0,0 +1,16 @@
{
config,
lib,
...
}: {
options = {
direnv.enable = lib.mkEnableOption "enable direnv";
};
config = lib.mkIf config.direnv.enable {
programs.direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
};
}