2019-12-20 05:54:26 +01:00
|
|
|
{ config, pkgs, ... }: {
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
environment.systemPackages = [ pkgs.direnv ];
|
|
|
|
|
|
|
|
home-manager.users.mainUser.programs.direnv.enable = true;
|
|
|
|
|
|
|
|
programs.zsh.interactiveShellInit = ''
|
|
|
|
eval "$(${pkgs.direnv}/bin/direnv hook zsh)"
|
|
|
|
'';
|
|
|
|
programs.bash.interactiveShellInit = ''
|
|
|
|
eval "$(${pkgs.direnv}/bin/direnv hook bash)"
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|