Added direnv configuration

This commit is contained in:
Alejandro Angulo 2023-04-02 16:30:31 -07:00
parent fd078a45bc
commit b6d07f92d5
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 25 additions and 1 deletions

View file

@ -15,10 +15,11 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
aa = { aa = {
tools = { tools = {
direnv.enable = true;
exa.enable = true;
git.enable = true; git.enable = true;
gpg.enable = true; gpg.enable = true;
zsh.enable = true; zsh.enable = true;
exa.enable = true;
}; };
apps = { apps = {

View file

@ -0,0 +1,23 @@
{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.aa.tools.direnv;
in {
options.aa.tools.direnv = with lib.types; {
enable = mkEnableOption "direnv";
};
config = mkIf cfg.enable {
aa.home.extraOptions = {
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
};
};
}