mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-14 00:59:44 +00:00
16 lines
274 B
Nix
16 lines
274 B
Nix
{
|
|
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;
|
|
};
|
|
};
|
|
}
|