| 16 Dec 2025 |
Randy Eckenrode | When did SwiftPM get support for traits? | 03:11:38 |
samasaur | very recently! 6.2 I think | 03:58:27 |
niklaskorz | tailscale cli fails for {aarch64,x86_64}-darwin on both unstable and 25.11 due to test failures (something about a closed connection), they pass on 25.05, hm | 11:08:57 |
niklaskorz | ok narrowed it down to https://github.com/NixOS/nixpkgs/pull/465025 | 11:09:42 |
niklaskorz | they do pass locally on aarch64-darwin though, and in the PR apparently also did pass locally on x86_64-darwin | 11:10:25 |
WeetHet | I got tired of running a separate nix in OrbStack. Is there an example of setting it up as a linux builder? | 11:12:53 |
WeetHet | Do I just add it via nix.buildMachines? | 11:13:29 |
niklaskorz | nix.linux-builder.enable = true; | 11:15:41 |
niklaskorz | in nix-darwin | 11:15:43 |
niklaskorz | oh you mean the nix in orbstack | 11:15:51 |
niklaskorz | sorry | 11:15:52 |
WeetHet | That uses qemu | 11:15:55 |
WeetHet | I want to use orbstack | 11:16:03 |
WeetHet | * I want to use orbstack (which uses Virtualisation.framework) | 11:16:14 |
niklaskorz | there is a module that also uses Virtualisation framework fwiw | 11:16:24 |
niklaskorz | but if you have a Linux VM running inside OrbStack, then it'd work like any remote builder, yeah | 11:16:36 |
WeetHet | Ye but it's a pain to set up | 11:16:38 |
niklaskorz | https://wiki.nixos.org/wiki/Distributed_build#Modify_the_local_machine's_Nix_config_to_know_about_the_remote_machine. | 11:17:40 |
Randy Eckenrode | Ah. That’s probably going to make using anything other than source a no-go. | 11:32:09 |
WeetHet | 1 available machines:
(systems, maxjobs, supportedFeatures, mandatoryFeatures)
([aarch64-linux], 1, [], [])
cannot build on 'ssh://orb': error: cannot connect to 'orb': ssh: Could not resolve hostname orb: nodename nor servname provided, or not known
Failed to find a machine for remote build!
derivation: nb9aiwzw7w1yz1kxsjd2nj7w0yfr9cmp-builder.pl.drv
required (system, features): (aarch64-linux, [])
1 available machines:
(systems, maxjobs, supportedFeatures, mandatoryFeatures)
([aarch64-linux], 1, [], [])
error: a 'aarch64-linux' with features {} is required to build '/nix/store/nb9aiwzw7w1yz1kxsjd2nj7w0yfr9cmp-builder.pl.drv', but I am a 'aarch64-darwin' with features {apple-virt, benchmark, big-parallel, nixos-test}
Hint: the failing derivation has allowSubstitutes set to false, forcing it to be built rather than substituted.
Passing --always-allow-substitutes to force substitution may resolve this failure if the path is available in a substituter.
❯ ssh ssh://orb
weethet@ubuntu:~$
| 12:02:23 |
WeetHet | Weird | 12:02:28 |
niklaskorz | is orb an actual hostname or just defined in your local ssh config? | 12:03:01 |
WeetHet | Local | 12:03:08 |
WeetHet | I don't think macOS has root ssh configuration so I don't know how to set a 32222 port | 12:15:24 |
WeetHet | * I don't think macOS has root ssh configuration so I don't know how to set a 32222 port to be used by the remote builder | 12:15:33 |
Randy Eckenrode | I think it can be enabled in the SSH config, but it’s disabled by default. | 12:17:19 |
WeetHet | Hmm, builder.pl> error: you are not privileged to build input-addressed derivations | 12:29:21 |
niklaskorz | you can have a look at how the nix-darwin linux builder module does it | 12:30:31 |
niklaskorz | it adds the ssh config to /etc/ssh/ssh_config.d/ | 12:30:42 |
niklaskorz | https://github.com/nix-darwin/nix-darwin/blob/master/modules/nix/linux-builder.nix | 12:30:51 |