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:
parent
d76b708d19
commit
3787cf4da1
|
@ -1,6 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./direnv.nix
|
||||
./zsh
|
||||
];
|
||||
}
|
||||
|
|
8
home/direnv.nix
Normal file
8
home/direnv.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
# A better `use_nix`
|
||||
enableNixDirenvIntegration = true;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue