nixos-config/system/desktop/direnv.nix
Ingolf Wagner 54bab918d7
init
2019-10-24 02:24:33 +02:00

15 lines
334 B
Nix

{ config, pkgs, ... }:
{
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)"
'';
}