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?
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.jqI 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.toplevelI get a bunch of errors like:The introduction blog mentions
external-buildersconfig, but it was disallowed indeterminateNix.customSettings.What am I doing wrong?