Flakes: Difference between revisions

imported>Toastal
missing shebang; fails on fish
imported>Asymmetric
m --update-input argument was moved to lock subcommand
Line 14: Line 14:


<syntaxHighlight lang=console>
<syntaxHighlight lang=console>
$ nix flake update --update-input home-manager
$ nix flake lock --update-input home-manager
</syntaxHighlight>
</syntaxHighlight>


Line 191: Line 191:
</syntaxHighlight>
</syntaxHighlight>


You can also use the lockfile to make updating the hashes easier using <code>nix flake update --update-input flake-compat</code>. Add the following to your <code>flake.nix</code>:
You can also use the lockfile to make updating the hashes easier using <code>nix flake lock --update-input flake-compat</code>. Add the following to your <code>flake.nix</code>:


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>