Flakes: Difference between revisions
imported>JamesofScout m add assume unchanged to Dev Tricks |
imported>Jmarmstrong1207 →Super fast nix-shell: Change direnv section to mention nix-direnv instead. It automatically does everything mentioned and is cleaner. |
||
Line 349: | Line 349: | ||
{{warning|TODO: there is an alternative version where the defaultPackage is a pkgs.buildEnv that contains all the dependencies. And then nix shell is used to open the environment.}} | {{warning|TODO: there is an alternative version where the defaultPackage is a pkgs.buildEnv that contains all the dependencies. And then nix shell is used to open the environment.}} | ||
=== | === Automatically switch nix shells with nix-direnv === | ||
You can easily switch nix shells when you cd into different projects with nix-direnv. [https://github.com/nix-community/nix-direnv View their guide here] | |||
==== Optimize the reloads ==== | ==== Optimize the reloads ==== |