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
2 changed files with 9 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./direnv.nix
|
||||||
./zsh
|
./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…
Add table
Add a link
Reference in a new issue