4 ms·
Do you have a repo/gist where you can throw up a sanitized rpi config? I don't know much about Nix but what you are describing sounds like a nice use case as I
by newman314 5y ago
Do you have a repo/gist where you can throw up a sanitized rpi config? I don't know much about Nix but what you are describing sounds like a nice use case as I do have to periodically rebuild different RPIs.
- stardenburden 5y agohttps://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.
- jeppesen-io 5y agoI'm not sure what you mean by sanitized, but here's one example. Very simple configuration on my pi4 server-ish. This is not a remote deploy but gives you an idea of a simple-ish configuration https://github.com/NelsonJeppesen/nix-lifestyle/blob/main/nixos/machines/blue.nix https://github.com/NelsonJeppesen/nix-lifestyle/blob/main/ni... After the first hump of learning the Nix ecosystem, the rewards on time are great EDIT: After looking over the repo, I can see how much code would be unneeded over a Nix[os] configuration