NixOS on ARM/Raspberry Pi 5: Difference between revisions
Malteneuss (talk | contribs) m Add remote builder steps |
Malteneuss (talk | contribs) m Add deploy and update section |
||
Line 182: | Line 182: | ||
# How to do cross-compilation. | # How to do cross-compilation. | ||
== Deploy and Update the Pi 5 NixOS system once it's running NixOS == | |||
Once the Pi 5 is running NixOS, you can update it with newer NixOS system configurations using e.g. the usual <code>nix-rebuild</code> | |||
tool with a call similar to | |||
<code>nixos-rebuild --flake .#pi5 --build-host piuser@pi5 --target-host piuser@pi5 --use-remote-sudo switch</code> | |||
that uses the SSH connection from the remote builder section. | |||
See [https://nixcademy.com/2023/08/10/nixos-rebuild-remote-deployment/ this guide] for a good explanation of this terminal call. |