home: move lorri file to direnv

This commit is contained in:
Antoine Martin 2024-03-04 19:21:23 +01:00
parent f18238cd5c
commit 226e726551
2 changed files with 4 additions and 6 deletions

26
home/direnv.nix Normal file
View file

@ -0,0 +1,26 @@
{
config,
lib,
...
}: let
inherit
(lib)
mkEnableOption
mkIf
;
cfg = config.my.home.direnv;
in {
options.my.home.direnv = {
enable = (mkEnableOption "setup direnv usage") // {default = true;};
};
config = mkIf cfg.enable {
programs.direnv = {
enable = true;
nix-direnv = {
enable = true;
};
};
};
}