Skip to content

nh os switch --build-host <HOST> still builds locally #308

@ejpcmac

Description

@ejpcmac

Context

I’m trying to replace nixos-rebuild switch --target-host <TARGET> --build-host <TARGET> with nh os switch --target-host <TARGET> --build-host <TARGET>, the target and build host being the same.

Problem description

When I pass --build-host to nh os switch, I properly see that a --builder parameter is passed to nix build. However, it builds everything locally, and then copies the data to my target host, as if --build-host was not passed.

Expected behaviour

When using nixos-rebuild switch with --build-host being the same as --target-host, only the evaluation is performed locally. Everything else (downloading and building the derivation outputs) is done on the target, avoiding unnecessary network copies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions