pinwheel: Add direnv module
This commit is contained in:
15
hosts/pinwheel/modules/direnv/default.nix
Normal file
15
hosts/pinwheel/modules/direnv/default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
zshEnabled = config.mod.zsh.enable;
|
||||
in
|
||||
{
|
||||
home-manager.users.alex = {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
|
||||
|
||||
programs.direnv.enableZshIntegration = lib.mkIf zshEnabled true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user