!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
11 Jul 2025
@zhaofeng:zhaofeng.liZhaofeng LiThere's also known_hosts, and you probably need to sudo ssh once to get the host added14:06:15
@prince213:matrix.orgprince213 Did both, andnix store info doesn't work, but sudo nix store info does. 14:09:19
@prince213:matrix.orgprince213 * Did both, and nix store info doesn't work, but sudo nix store info does. 14:09:23
@prince213:matrix.orgprince213I think this part is normal though14:09:44
@reckenrode:matrix.orgRandy EckenrodeIf you’re doing it as your user, wouldn’t Nix be reading your user’s SSH config not root’s?14:10:47
@prince213:matrix.orgprince213 So if I do env NIX_REMOTE=daemon sudo --preserve-env=NIX_REMOTE nix build then it will also fail 14:10:53
@prince213:matrix.orgprince213Remote builds are done by the daemon so it reads root's config.14:11:28
@zhaofeng:zhaofeng.liZhaofeng LiHmm weird, probably need to stick a bunch of -vvvv and pray that it tells you something useful14:11:43
@prince213:matrix.orgprince213But I did also try setting it for my normal user and then both nix build and sudo nix build won't work14:11:53
@reckenrode:matrix.orgRandy Eckenrode
In reply to @prince213:matrix.org
Remote builds are done by the daemon so it reads root's config.
When I do remote builds, it used my user’s config to authenticate via Secretive.
14:12:00
@reckenrode:matrix.orgRandy Eckenrode
In reply to @prince213:matrix.org
Remote builds are done by the daemon so it reads root's config.
*
14:12:11
@reckenrode:matrix.orgRandy EckenrodeMaybe it’s a Lix thing. I don’t use Nix.14:12:30
@emilazy:matrix.orgemilyyeah I think remote builds do not actually go through the daemon possibly14:14:51
@emilazy:matrix.orgemily it's like, eligible NIX_REMOTE until max-jobs, then the defined machines, or something 14:15:11
@emilazy:matrix.orgemilynot sure14:15:15
@emilazy:matrix.orgemilyit means the builds are spawned as children and mutate the store directly14:15:29
@emilazy:matrix.orgemily Lix HEAD does for root too 14:15:38
@prince213:matrix.orgprince213SSH stdout first line: killing process 1423214:17:20
@prince213:matrix.orgprince213I guess it's not normal14:17:27
@prince213:matrix.orgprince213Intersting14:34:22
@prince213:matrix.orgprince213With many -v I can see the SSH log of nix store info14:34:36
@prince213:matrix.orgprince213But nix build just says killing process14:34:48
@prince213:matrix.orgprince213Maybe it's time to try Lix14:41:02
@prince213:matrix.orgprince213 Randy Eckenrode: What flake input are you using? https://git.lix.systems/lix-project/nixos-module seems to be NixOS only 14:41:30
@reckenrode:matrix.orgRandy EckenrodeThe module also works on Darwin.14:41:53
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/reckenrode/nixos-configs/blob/b2d3ba6c35ca2903d1d176652ca5d390d8fa7e1a/flake.nix#L5914:42:20
@zhaofeng:zhaofeng.liZhaofeng LiHuh, is the remote host macOS or linux?14:42:34
@prince213:matrix.orgprince213Linux14:42:42
@prince213:matrix.orgprince213I'm trying to build nixpkgs#legacyPackages.x86_64-linux.hello if that's relevant14:42:58
@prince213:matrix.orgprince213My host is macOS though14:43:10

Show newer messages


Back to Room ListRoom Version: 6