Flakes: Difference between revisions

imported>Mic92
the `use flake` function does not protect against garbage collection
imported>Mic92
add nix flake installer
Line 42: Line 42:
Finally, if the Nix installation is in multi-user mode, don’t forget to restart the nix-daemon.
Finally, if the Nix installation is in multi-user mode, don’t forget to restart the nix-daemon.


There is no official installer yet, but it is possible to download the latest snapshot nix from hydra
There is no official installer yet, but you can use the [https://github.com/numtide/nix-flakes-installer nix-flake-installer]:
as shown in here [https://github.com/Mic92/dotfiles/blob/27a5b81964ecb8722796018a8c4ed7b149f05b96/.github/workflows/build.yml#L33 github action].
 
<syntaxHighlight lang=console>
$ sh <(curl -L https://github.com/numtide/nix-flakes-installer/releases/download/nix-3.0pre20200804_ed52cf6/install)
</syntaxHighlight>


== Basic project usage ==
== Basic project usage ==