According to these docs the --build-host & --target-host dont have the same behavior anymore in nixos-rebuild-ng. This breaks a use case where i want to deploy to a different architecture like from x86_64-linux to a remote aarch64 and build on that remote device without needing to build locally with qemu. In this case even when specifying --build-host myaarch64box i just get error: a aarch64-linux is required to build but I am a x86_64-linux . I see in the docs that we are now expected to use ssh myaarch64box -- nixos-rebuild --flake .#myhostname but that would require me to manually copy over the flake configuration to the target-host each time and set the flake path in the command. I suppose this could be scripted but until now that functionality was included in nixos-rebuild and it also makes more difficult the management of secrets. Advice appreciated, thanks.
Nixpkgs version
Unstable (25.11)
Notify maintainers
@thiagokokada
According to these docs the
--build-host&--target-hostdont have the same behavior anymore innixos-rebuild-ng. This breaks a use case where i want to deploy to a different architecture like fromx86_64-linuxto a remoteaarch64and build on that remote device without needing to build locally with qemu. In this case even when specifying--build-host myaarch64boxi just geterror: a aarch64-linux is required to build but I am a x86_64-linux. I see in the docs that we are now expected to usessh myaarch64box -- nixos-rebuild --flake .#myhostnamebut that would require me to manually copy over the flake configuration to the target-host each time and set the flake path in the command. I suppose this could be scripted but until now that functionality was included innixos-rebuildand it also makes more difficult the management of secrets. Advice appreciated, thanks.Nixpkgs version
Unstable (25.11)
Notify maintainers
@thiagokokada