nixos-config/system/desktop/direnv.nix

15 lines
334 B
Nix
Raw Normal View History

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)"
'';
}