Skip to content

Can't build nixos configuration using native linux builder #156

@shishkin

Description

@shishkin

I have installed determinate nix on darwin using a flake following guidelines from README.

When I build a package like this nix build --system x86_64-linux --option substitute false --option binary-caches "" nixpkgs#legacyPackages.x86_64-linux.jq I get an ELF executable that predictably fails to run on macos.

However when I try to build a nixos configuration from a flake like this: nix build .#nixosConfigurations.myhostname.config.system.build.toplevel I get a bunch of errors like:

error: Cannot build '/nix/store/saypdak2k45zyl5wgbl3lcw5syi30mvg-nixos.conf.drv'.
       Reason: required system or feature not available
       Required system: 'aarch64-linux' with features {}
       Current system: 'aarch64-darwin' with features {apple-virt, benchmark, big-parallel, nixos-test}

The introduction blog mentions external-builders config, but it was disallowed in determinateNix.customSettings.

What am I doing wrong?

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