Skip to content

nixos-rebuild-ng: --build-host and --target-host #418868

@Doosty

Description

@Doosty

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions