11 Jul 2025 |
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 |
prince213 | Interesting | 14:43:45 |
prince213 | * Interesting, I'll try | 14:43:51 |
Zhaofeng Li | very weird indeed, I assume you've looked at console.app too (filter by nix-daemon)? | 14:44:54 |
Zhaofeng Li | but for remote building, lix 2.93 does this weird bash thing to work around non-POSIX shells... which really wasn't a good idea | 14:45:42 |
prince213 | If you mean console messages then there doesn't seem to be any | 14:45:46 |
Zhaofeng Li | but it's been removed in head | 14:45:50 |
prince213 | The remote shell is bash IIRC | 14:45:59 |
prince213 | * The remote login shell is bash IIRC | 14:46:07 |