Flakes: Difference between revisions

Pigs (talk | contribs)
Move flake-compat content to it's own page and link to new page
Pigs (talk | contribs)
m Link to direnv page
Line 519: Line 519:
{{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 === <!--T:97-->
== Automatically switch nix shells with direnv == <!--T:97-->


<!--T:98-->
<!--T:98-->
You can easily switch nix shells when you cd into different projects with [https://github.com/nix-community/nix-direnv nix-direnv].
It is possible to automatically activate different Nix shells when navigating between project directories by using [[Direnv]]. Additional Nix integration with Direnv can be achieved with [https://github.com/nix-community/nix-direnv nix-direnv].


== Pushing Flakes to Cachix == <!--T:99-->
== Pushing Flakes to Cachix == <!--T:99-->