11 Jul 2025 |
Zhaofeng Li | There's also known_hosts, and you probably need to sudo ssh once to get the host added | 14:06:15 |
prince213 | Did both, andnix store info doesn't work, but sudo nix store info does. | 14:09:19 |
prince213 | * Did both, and nix store info doesn't work, but sudo nix store info does. | 14:09:23 |
prince213 | I think this part is normal though | 14:09:44 |
Randy Eckenrode | If you’re doing it as your user, wouldn’t Nix be reading your user’s SSH config not root’s? | 14:10:47 |
prince213 | So if I do env NIX_REMOTE=daemon sudo --preserve-env=NIX_REMOTE nix build then it will also fail | 14:10:53 |
prince213 | Remote builds are done by the daemon so it reads root's config. | 14:11:28 |
Zhaofeng Li | Hmm weird, probably need to stick a bunch of -vvvv and pray that it tells you something useful | 14:11:43 |
prince213 | But I did also try setting it for my normal user and then both nix build and sudo nix build won't work | 14:11:53 |
Randy 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 |
Randy Eckenrode | In reply to @prince213:matrix.org Remote builds are done by the daemon so it reads root's config. * | 14:12:11 |
Randy Eckenrode | Maybe it’s a Lix thing. I don’t use Nix. | 14:12:30 |
emily | yeah I think remote builds do not actually go through the daemon possibly | 14:14:51 |
emily | it's like, eligible NIX_REMOTE until max-jobs , then the defined machines, or something | 14:15:11 |
emily | not sure | 14:15:15 |
emily | it means the builds are spawned as children and mutate the store directly | 14:15:29 |
emily | Lix HEAD does for root too | 14:15:38 |
prince213 | SSH stdout first line:
killing process 14232 | 14:17:20 |
prince213 | I guess it's not normal | 14:17:27 |
prince213 | Intersting | 14:34:22 |
prince213 | With many -v I can see the SSH log of nix store info | 14:34:36 |
prince213 | But nix build just says killing process | 14:34:48 |
prince213 | Maybe it's time to try Lix | 14:41:02 |
prince213 | Randy Eckenrode: What flake input are you using? https://git.lix.systems/lix-project/nixos-module seems to be NixOS only | 14:41:30 |
Randy Eckenrode | The module also works on Darwin. | 14:41:53 |
Randy Eckenrode | https://github.com/reckenrode/nixos-configs/blob/b2d3ba6c35ca2903d1d176652ca5d390d8fa7e1a/flake.nix#L59 | 14:42:20 |
Zhaofeng Li | Huh, is the remote host macOS or linux? | 14:42:34 |
prince213 | Linux | 14:42:42 |
prince213 | I'm trying to build nixpkgs#legacyPackages.x86_64-linux.hello if that's relevant | 14:42:58 |
prince213 | My host is macOS though | 14:43:10 |