enable direnv as a home-manager module so it can be used with other shells than bash
This commit is contained in:
parent
e1a2780a0a
commit
b278337b6c
3 changed files with 1 additions and 1 deletions
13
modules/home-manager/features/direnv.nix
Normal file
13
modules/home-manager/features/direnv.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
feature = "direnv";
|
||||
in
|
||||
{
|
||||
config = lib.mkIf config.${feature}.enable { programs.direnv.enable = true; };
|
||||
|
||||
options.${feature}.enable = lib.mkEnableOption "enables ${feature}";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue