!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1171 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org190 Servers

Load older messages


SenderMessageTime
16 Dec 2025
@reckenrode:matrix.orgRandy EckenrodeWhen did SwiftPM get support for traits?03:11:38
@samasaur:matrix.orgsamasaurvery recently! 6.2 I think03:58:27
@niklaskorz:matrix.orgniklaskorztailscale 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, hm11:08:57
@niklaskorz:matrix.orgniklaskorzok narrowed it down to https://github.com/NixOS/nixpkgs/pull/46502511:09:42
@niklaskorz:matrix.orgniklaskorzthey do pass locally on aarch64-darwin though, and in the PR apparently also did pass locally on x86_64-darwin11:10:25
@weethet:catgirl.cloudWeetHetI 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:catgirl.cloudWeetHet Do I just add it via nix.buildMachines? 11:13:29
@niklaskorz:matrix.orgniklaskorz nix.linux-builder.enable = true; 11:15:41
@niklaskorz:matrix.orgniklaskorzin nix-darwin11:15:43
@niklaskorz:matrix.orgniklaskorz oh you mean the nix in orbstack 11:15:51
@niklaskorz:matrix.orgniklaskorzsorry11:15:52
@weethet:catgirl.cloudWeetHetThat uses qemu11:15:55
@weethet:catgirl.cloudWeetHetI want to use orbstack11:16:03
@weethet:catgirl.cloudWeetHet* I want to use orbstack (which uses Virtualisation.framework)11:16:14
@niklaskorz:matrix.orgniklaskorzthere is a module that also uses Virtualisation framework fwiw11:16:24
@niklaskorz:matrix.orgniklaskorzbut if you have a Linux VM running inside OrbStack, then it'd work like any remote builder, yeah11:16:36
@weethet:catgirl.cloudWeetHetYe but it's a pain to set up 11:16:38
@niklaskorz:matrix.orgniklaskorzhttps://wiki.nixos.org/wiki/Distributed_build#Modify_the_local_machine's_Nix_config_to_know_about_the_remote_machine.11:17:40
@reckenrode:matrix.orgRandy EckenrodeAh. That’s probably going to make using anything other than source a no-go.11:32:09
@weethet:catgirl.cloudWeetHet
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:catgirl.cloudWeetHetWeird12:02:28
@niklaskorz:matrix.orgniklaskorzis orb an actual hostname or just defined in your local ssh config?12:03:01
@weethet:catgirl.cloudWeetHetLocal12:03:08
@weethet:catgirl.cloudWeetHetI don't think macOS has root ssh configuration so I don't know how to set a 32222 port12:15:24
@weethet:catgirl.cloudWeetHet* 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 builder12:15:33
@reckenrode:matrix.orgRandy EckenrodeI think it can be enabled in the SSH config, but it’s disabled by default.12:17:19
@weethet:catgirl.cloudWeetHet Hmm, builder.pl> error: you are not privileged to build input-addressed derivations 12:29:21
@niklaskorz:matrix.orgniklaskorzyou can have a look at how the nix-darwin linux builder module does it12:30:31
@niklaskorz:matrix.orgniklaskorzit adds the ssh config to /etc/ssh/ssh_config.d/12:30:42
@niklaskorz:matrix.orgniklaskorzhttps://github.com/nix-darwin/nix-darwin/blob/master/modules/nix/linux-builder.nix12:30:51

Show newer messages


Back to Room ListRoom Version: 6