Flakes: Difference between revisions

imported>Ursi
`nixFlakes` just points to `nixUnstable` in nixpkgs
imported>Legendofmiracles
m removed a unnecessary f
Line 340: Line 340:
Nix Flakes has a Nix evaluation caching mechanism. Is it possible to expose that somehow to automatically trigger direnv reloads?
Nix Flakes has a Nix evaluation caching mechanism. Is it possible to expose that somehow to automatically trigger direnv reloads?


With the previous solution, direnv would only reload iff the flake.nix or flake.lock files have changed. This is not completely precise as the flake.nix file might import other files in the repository.
With the previous solution, direnv would only reload if the flake.nix or flake.lock files have changed. This is not completely precise as the flake.nix file might import other files in the repository.


==== Setting the bash prompt like nix-shell ====  
==== Setting the bash prompt like nix-shell ====