4 ms·
https://github.com/LegendOfMiracles/dotnix/tree/master/hosts/pi/configuration.nix https://github.com/LegendOfMiracles/dotnix/tree/master/hosts... (bottom lines
by stardenburden 5y ago
https://github.com/LegendOfMiracles/dotnix/tree/master/hosts/pi/configuration.nix https://github.com/LegendOfMiracles/dotnix/tree/master/hosts... (bottom lines describe the remote build logic) this is the actual config of the pi 3b... One other file also gets sourced: the defaults-nixos file in the root of the repo. And the distributed build host nix file describes creating a build user on my main machine.
The setup is mostly mirrored from https://sgt.hootr.club/molten-matter/nix-distributed-builds/ https://sgt.hootr.club/molten-matter/nix-distributed-builds/
Be sure to enable binfmt for whatever architecture your pi uses on your main machine for cross compilation.
For generating the iso I used nixos-generators.