how would you deploy remotely *suzu* without cross-building? #11

Closed
opened 2025-12-29 04:20:46 +01:00 by adam · 1 comment
Owner

Originally created by @smrtak on GitHub (Sep 19, 2023).

Hello Ryan!
First of all thank you for your repositories and the flake book. I had learned a lot from your documentation.

I managed to install nixOS and boot orangepi5 from nvme ssd based on your notes in nixos-rk3588 repo.

Then I discovered your nix-config repo and started constructing similar repository of nixos boxes around me.
What I'm struggling to do is to remote rebuild rk3588 SBC with colmena without cross-build

Would you mind to share any hint if there is an easy way to do it?

This is what I tried, but failed:

[nix-shell:~/nix-config]$ colmena apply --on @suzu --build-on-target 
[INFO ] Using flake: git+file:///home/user/nix-config
[INFO ] Enumerating nodes...
[INFO ] Selected all 1 nodes.
      ❌ 5m Failed: Child process exited with error code: 1
 suzu ✅ 8s Evaluated suzu
 suzu ❌ 5m Build failed: Child process exited with error code: 1                                                                                                                                                                                                              
[ERROR] Failed to build suzu - Last 20 lines of logs:
[ERROR]   stderr) copying path '/nix/store/srbkgcw7bms6a4w0816gfsbrpbx72fgk-wayland-1.22.0-bin' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/573p18msvkjjafbhf934pn6lw32lb753-docbook2X-0.8.8' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/1pcyxjck2sfyy3fvmnykdwpbgxldfgay-xz-5.4.3-dev' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/v61lhflqmjp44ncwkcl9xzlzs8my35ij-util-linux-minimal-2.38.1-dev' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/03grn1z9pl9m8702wkshj5pwnvknazim-zlib-1.2.13-dev' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/7gqmifamblx3zb25qcrxdsmsi3az7an2-zstd-1.5.5-bin' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/rkvlj6viy90c6k70h11dd31b9r0r7mmw-curl-8.1.1-dev' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/wnnvw5mayjn90968illd0k1vjigrva4d-libxml2-2.10.4-dev' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/h01cajb40c7h8251qgcy9x5694k186vr-kbd-2.5.1' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/vr04ag53qddlr77886lq9mmssibbaz18-man-db-2.11.2' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/n2a39vr4ibqls44g5qnrzjz8zhlw1gmb-libxml2-2.10.4-py' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/34f8w6ypmmfwjjjlvpfajxfzl7m017jy-libxslt-1.1.37-dev' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/vp48cipsvykyv7qvi2w8kmpj1wfw4kzd-w3m-0.5.3+git20230121' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/nj5b4bppgf75yk8jzdb4ckk4asjk9b7z-zstd-1.5.5-dev' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/q1sm01394l7f1hciw2hh68mqvsc7r3cf-kbd-2.5.1-dev' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/n0w0yyilnnl3j553slwyd76wn0h17s9l-curl-8.1.1-dev' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/8vkyh3z9pfyhd30aj8d547g4psr3knil-systemd-minimal-253.6' from 'https://cache.nixos.org'...
[ERROR]   stderr) copying path '/nix/store/rfhvd32xy0xgr5ab71lm9qnvhi1rj52m-xmlto-0.0.28' from 'https://cache.nixos.org'...
[ERROR]   stderr) error: a 'x86_64-linux' with features {} is required to build '/nix/store/swnwfkpz8bsb9jfcg2gq7414bipj7d3z-aarch64-unknown-linux-gnu-binutils-2.40.drv', but I am a 'aarch64-linux' with features {benchmark, big-parallel, gccarch-armv8-a, kvm, nixos-test}
[ERROR]  failure) Child process exited with error code: 1
[ERROR] Failed to complete requested operation - Last 1 lines of logs:
[ERROR]  failure) Child process exited with error code: 1
[ERROR] -----
[ERROR] Operation failed with error: Child process exited with error code: 1
Hint: Backtrace available - Use `RUST_BACKTRACE=1` environment variable to display a backtrace

Altering system in here to aarch64_system didn't help either

I guess I'm missing something very essential... Still learning nix.

TIA

Originally created by @smrtak on GitHub (Sep 19, 2023). Hello Ryan! First of all **thank you** for your repositories and the flake book. I had learned a lot from your documentation. I managed to install nixOS and boot orangepi5 from nvme ssd based on your notes in `nixos-rk3588` repo. Then I discovered your `nix-config` repo and started constructing similar repository of nixos boxes around me. What I'm struggling to do is to remote rebuild rk3588 SBC with `colmena` **without** cross-build Would you mind to share any hint if there is an easy way to do it? This is what I tried, but failed: ``` [nix-shell:~/nix-config]$ colmena apply --on @suzu --build-on-target [INFO ] Using flake: git+file:///home/user/nix-config [INFO ] Enumerating nodes... [INFO ] Selected all 1 nodes. ❌ 5m Failed: Child process exited with error code: 1 suzu ✅ 8s Evaluated suzu suzu ❌ 5m Build failed: Child process exited with error code: 1 [ERROR] Failed to build suzu - Last 20 lines of logs: [ERROR] stderr) copying path '/nix/store/srbkgcw7bms6a4w0816gfsbrpbx72fgk-wayland-1.22.0-bin' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/573p18msvkjjafbhf934pn6lw32lb753-docbook2X-0.8.8' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/1pcyxjck2sfyy3fvmnykdwpbgxldfgay-xz-5.4.3-dev' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/v61lhflqmjp44ncwkcl9xzlzs8my35ij-util-linux-minimal-2.38.1-dev' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/03grn1z9pl9m8702wkshj5pwnvknazim-zlib-1.2.13-dev' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/7gqmifamblx3zb25qcrxdsmsi3az7an2-zstd-1.5.5-bin' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/rkvlj6viy90c6k70h11dd31b9r0r7mmw-curl-8.1.1-dev' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/wnnvw5mayjn90968illd0k1vjigrva4d-libxml2-2.10.4-dev' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/h01cajb40c7h8251qgcy9x5694k186vr-kbd-2.5.1' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/vr04ag53qddlr77886lq9mmssibbaz18-man-db-2.11.2' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/n2a39vr4ibqls44g5qnrzjz8zhlw1gmb-libxml2-2.10.4-py' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/34f8w6ypmmfwjjjlvpfajxfzl7m017jy-libxslt-1.1.37-dev' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/vp48cipsvykyv7qvi2w8kmpj1wfw4kzd-w3m-0.5.3+git20230121' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/nj5b4bppgf75yk8jzdb4ckk4asjk9b7z-zstd-1.5.5-dev' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/q1sm01394l7f1hciw2hh68mqvsc7r3cf-kbd-2.5.1-dev' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/n0w0yyilnnl3j553slwyd76wn0h17s9l-curl-8.1.1-dev' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/8vkyh3z9pfyhd30aj8d547g4psr3knil-systemd-minimal-253.6' from 'https://cache.nixos.org'... [ERROR] stderr) copying path '/nix/store/rfhvd32xy0xgr5ab71lm9qnvhi1rj52m-xmlto-0.0.28' from 'https://cache.nixos.org'... [ERROR] stderr) error: a 'x86_64-linux' with features {} is required to build '/nix/store/swnwfkpz8bsb9jfcg2gq7414bipj7d3z-aarch64-unknown-linux-gnu-binutils-2.40.drv', but I am a 'aarch64-linux' with features {benchmark, big-parallel, gccarch-armv8-a, kvm, nixos-test} [ERROR] failure) Child process exited with error code: 1 [ERROR] Failed to complete requested operation - Last 1 lines of logs: [ERROR] failure) Child process exited with error code: 1 [ERROR] ----- [ERROR] Operation failed with error: Child process exited with error code: 1 Hint: Backtrace available - Use `RUST_BACKTRACE=1` environment variable to display a backtrace ``` Altering system in [here](https://github.com/ryan4yin/nix-config/blob/09a6af9d364afa326e10f237e0c88244c32f17b4/flake.nix#L169) to `aarch64_system` didn't help either I guess I'm missing something very essential... Still learning nix. TIA
adam added the good first issue label 2025-12-29 04:20:46 +01:00
adam closed this issue 2025-12-29 04:20:46 +01:00
Author
Owner

@ryan4yin commented on GitHub (Sep 20, 2023):

Similar problem as this one: https://github.com/ryan4yin/nixos-rk3588/issues/5#issuecomment-1709369254

You have to remove the nixpkgs.crossSystem writtern here: 09a6af9d36/hosts/12kingdoms/suzu/default.nix (L15)

@ryan4yin commented on GitHub (Sep 20, 2023): Similar problem as this one: https://github.com/ryan4yin/nixos-rk3588/issues/5#issuecomment-1709369254 You have to remove the `nixpkgs.crossSystem` writtern here: https://github.com/ryan4yin/nix-config/blob/09a6af9d364afa326e10f237e0c88244c32f17b4/hosts/12kingdoms/suzu/default.nix#L15
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/nix-config-ryan4yin#11