Flakes: Difference between revisions
imported>Fd m Update cli use |
imported>Rubenmoor howto upgrade nixos using flakes |
||
| Line 286: | Line 286: | ||
switch | switch | ||
</syntaxHighlight> | </syntaxHighlight> | ||
In order to upgrade NixOS you will need to run | |||
<syntaxHighlight lang=bash> | |||
$ nixos-rebuild switch --upgrade --recreate-lock-file | |||
</syntaxHighlight> | |||
with the `--recreate-lock-file` flag. | |||
{{warning|Remote building seems to have an issue that's [https://github.com/NixOS/nixpkgs/issues/134952#issuecomment-1367056358 resolved by setting the <code>--fast</code> flag].}} | {{warning|Remote building seems to have an issue that's [https://github.com/NixOS/nixpkgs/issues/134952#issuecomment-1367056358 resolved by setting the <code>--fast</code> flag].}} | ||