!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
16 Dec 2025
@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
@niklaskorz:matrix.orgniklaskorzoh well12:31:00
@weethet:catgirl.cloudWeetHetOkay I fixed this12:32:59
@weethet:catgirl.cloudWeetHet

This is horrible though:

{ config, lib, ... }:
{
  options.services.orbstack = {
    enable = lib.mkEnableOption "OrbStack Linux Machine";
  };

  config = lib.mkIf config.services.orbstack.enable {
    system.requiresPrimaryUser = true;

    nix.distributedBuilds = true;
    nix.buildMachines = [
      {
        hostName = "orb-builder";
        system = "aarch64-linux";
      }
    ];

    environment.etc."ssh/ssh_config.d/200-orbstack-builder.conf".text = ''
      Host orb-builder
        Hostname 127.0.0.1
        Port 32222
        User builder
        IdentityFile ${config.system.primaryUserHome}/.orbstack/ssh/id_ed25519
        IdentitiesOnly yes
        UserKnownHostsFile ${config.system.primaryUserHome}/.orbstack/ssh/known_hosts
    '';
  };
}
12:33:11
@niklaskorz:matrix.orgniklaskorzlooks ok to me 😅12:33:42
@weethet:catgirl.cloudWeetHetNeeding primaryUser is the thing I have an issue with12:34:00
@niklaskorz:matrix.orgniklaskorzah, well you can also provide a store file there I guess12:34:20
@niklaskorz:matrix.orgniklaskorzas there's no secret information in known_hosts12:34:35
@niklaskorz:matrix.orgniklaskorzand about the identityfile, the linux-builder sets it up in /etc/nix/12:34:53
@niklaskorz:matrix.orgniklaskorz
❯ ls -la /etc/nix
.rw-------  411 root 11 Jan 16:06 builder_ed25519
.rw-r--r--   99 root 11 Jan 16:06 builder_ed25519.pub
12:35:10
@niklaskorz:matrix.orgniklaskorzyou could also move the known_hosts there I guess12:35:15
@weethet:catgirl.cloudWeetHetIt has an advantage of being able to modify the authorized keys on the machine12:35:26
@weethet:catgirl.cloudWeetHetI also can do it but then it's less automatic12:35:38
@weethet:catgirl.cloudWeetHetEhh, for now I'm gonna live with a primaryUser12:35:51
@weethet:catgirl.cloudWeetHetI'm gonna come up with something else when it gets removed from nix-darwin12:36:06
@reckenrode:matrix.orgRandy EckenrodeKnowing that I need to primarily build packages from source, I’m not going to package any more dependencies other than what I have. These are used by the toolchain and build with CMake.12:39:21
@reckenrode:matrix.orgRandy EckenrodeFor some reason though, statically building SwiftASN1 breaks building Swift Crypto. It makes absolutely no sense.12:39:57
@reckenrode:matrix.orgRandy EckenrodeI really wish SwiftPM had a way to provide pre-built artifacts for these, but AFAIK it does not. The intent is you build everything from source.12:41:02
@reckenrode:matrix.orgRandy Eckenrode I may go back to the drawing board and provide a binary output that actually does the build, so things that use SwiftPM can still build right. 12:41:44
@reckenrode:matrix.orgRandy EckenrodeI do want to hack up Swift PM to make it use our toolchain’s binaries for the experimental Swift Syntax binaries flag, but I still need to separate them out.12:42:27
@reckenrode:matrix.orgRandy EckenrodeI’m currently grinding through getting SwiftPM building. I want the result to look like what it would if build by SwiftPM. The CMake files do not seem meant for production use ….12:43:25
@vborja:matrix.orgvic set their display name to oeiuwq.15:10:07
@vborja:matrix.orgvic set a profile picture.21:32:12
@vborja:matrix.orgvic changed their display name from oeiuwq to vic.21:32:21

There are no newer messages yet.


Back to Room ListRoom Version: 6