Converted direnv from nixosModule to homeModule

This commit is contained in:
alejandro-angulo 2024-07-28 20:34:53 -07:00
parent 7dfe9f87be
commit 7c5c3cd576
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
4 changed files with 23 additions and 24 deletions

View file

@ -0,0 +1,21 @@
{
config,
lib,
namespace,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.${namespace}.tools.direnv;
in {
options.${namespace}.tools.direnv = {
enable = mkEnableOption "direnv";
};
config = mkIf cfg.enable {
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
};
}