nixos-rebuild switch --build-host <IP of x86 system>
If you want you can also do the evaluation on the x86 machine then you can run. Depending on whether you use flakes or not you need to add the system you want to deploy:
nixos-rebuild switch --build-host <IP of x86 system> --target-host <IP of RPI>
@phaeseeKe5Ee that PR adds the repo-side config, but hydra itself is not pointing at the hardware repo yet. For more info and tracking see the following:
In more promising news, I just removed the kernelPackages = pkgs.linuxKernel.packages.linux_rpi4; line from my rpi4 over the weekend and everything is working just fine, but I am also only using the built-in ethernet+usb, so if you use any hardware features (e.g. hats) then ymmv.
Since building with emulation can be quite slow I went a different route by cross compiling the kernel:
Setup my x86_64 machine as a remote builder (wiki entry, actual config here)
Cross compile the kernel provided by nixos-hardware on the remote builder (actual config here)
The actual build only took around 30 minutes on my (pretty powerful, I would say) machine and the result runs like normal.
The drawback of this approach is that Nix distinguishes between native and cross compiled packages, which means that cross compiling everything (not just the kernel) will result in many cache misses.
My box which I switched to standard kernel also had an argon case. Only issue I had was the fan stopped working with argononed from nixos 25.11, so I had to switch to argononed from unstable (this was before 26.05 was released which also works fine).
On 2nd thoughts just noticed that rpi4 in the argon case now has fan on continuously. Suspect the switch to mainline kernel did this. Haven’t had a chance to investigate yet.