Deploying nixos machines from macos
v-morlock opened this issue · 2 comments
v-morlock commented
Hi,
I'm trying to deploy my Colmena config (which works perfectly fine when deploying from another nixos machine) but I couldn't get either --build-on-target nor nixos remote builds to work.
The error with --build-on-target was seemingly related to buildNpmPackage and looked as follows:
[ERROR] stderr) Downloaded memchr v2.6.3
[ERROR] stderr) Downloaded futures-macro v0.3.28
[ERROR] stderr) Downloaded winreg v0.50.0
[ERROR] stderr) Downloaded nom v7.1.3
[ERROR] stderr) Error: unknown error
[ERROR] stderr)
[ERROR] stderr) Caused by:
[ERROR] stderr) [55] Failed sending data to the peer
[ERROR] stderr) error: builder for '/nix/store/z9szs6wqg0hr5m57ri8in10vm31qaxji-terminal-ui-npm-deps.drv' failed with exit code 1
While my remote-build config produced the following error:
error: a 'x86_64-linux' with features {} is required to build '/nix/store/kbwsn8viw2mkjjs9zryfgpbpiixx9pc3-alsoft.conf.drv', but I am a 'aarch64-darwin' with features {benchmark, big-parallel, nixos-test}
My config looked like this:
./hive.nix
meta = {
nixpkgs = import (fetchTarball "https://nixos.org/channels/nixos-23.05/nixexprs.tar.xz") { };
allowApplyAll = false;
machinesFile = ./machines;
};
./machines
ssh://root@xx.xx.xx.xx x86_64-linux
Do you have any hint how I can get this to work?
v-morlock commented
I could fix remote-building by adding myself to "trusted-users". The issue with "--build-on-target" persists - any ideas?
Pablo1107 commented
My user is in the trusted-users
array but I get the same error, do you know why that can happen?