home: add direnv

This uses nixos-community's version of `use_nix` which allows for
persistent shells, and is now compatible with flakes.
This commit is contained in:
Bruno BELANYI 2021-02-19 21:19:20 +00:00
parent d76b708d19
commit 3787cf4da1
2 changed files with 9 additions and 0 deletions

View file

@ -1,6 +1,7 @@
{ ... }: { ... }:
{ {
imports = [ imports = [
./direnv.nix
./zsh ./zsh
]; ];
} }

8
home/direnv.nix Normal file
View file

@ -0,0 +1,8 @@
{ ... }:
{
programs.direnv = {
enable = true;
# A better `use_nix`
enableNixDirenvIntegration = true;
};
}