While NixOS on ARM/Raspberry Pi - NixOS Wiki
works compiling huge packages such as the kernel takes much time.
So wondering whether anybody has tried cross compiling the whole nixos system and then
only copying / activating on the target platform.
There’s a jobset already for many arm packages. It’s just that not all of the raspberry kernel and firmware are a part of it. So sections of it you may have to compile.
However, there are sd-images already available under NixOS on ARM - NixOS Wiki
NixOS can be cross-compiled. Here’s a repo with some expressions for doing it: GitHub - samueldr/cross-system: Minimal config to cross-compile a NixOS system image for arm platforms
1 Like