enable direnv as a home-manager module so it can be used with other shells than bash

This commit is contained in:
wi11-holdsworth 2025-08-14 13:18:21 +10:00
parent e1a2780a0a
commit b278337b6c
3 changed files with 1 additions and 1 deletions

View file

@ -1,13 +0,0 @@
{
config,
lib,
...
}:
let
feature = "direnv";
in
{
config = lib.mkIf config.${feature}.enable { programs.direnv.enable = true; };
options.${feature}.enable = lib.mkEnableOption "enables ${feature}";
}