| 30 Jun 2021 |
Zhaofeng Li | Church | 23:11:35 |
Church | Yeah gonna try this from a nixos host, was originally trying this on a ubuntu laptop | 23:12:25 |
| 1 Jul 2021 |
Zhaofeng Li | In reply to @noah:matrix.chatsubo.cafe Yeah gonna try this from a nixos host, was originally trying this on a ubuntu laptop Ah, that could be the reason. The qemu binaries are in different paths than in NixOS so they may not be available in the sandbox. | 01:19:39 |
Church | Yeah wondering if I can pass args to nix build from colemna | 01:20:12 |
Church | Since I can get a nix build going fine for cross compiling | 01:20:21 |
Zhaofeng Li | There isn't one right now, but I can add one pretty easily. Let me see if there is a good name I can use for it | 01:23:02 |
Church | Might be helpful to pass in something like:
--option system aarch64-linux --extra-platforms aarch64-linux
| 01:28:18 |
Church | If I could tailor that per node it'd be even better | 01:28:36 |
Zhaofeng Li | Actually for that you can add it to the nix config to the machine | 01:29:02 |
Church | Oh really, this I didn't know. | 01:29:13 |
Zhaofeng Li | An option for "passing arguments to build" is trickier than it seems, because the supported arguments are different between nix build (nix3-build), nix-build and nix-store. It's hard to provide an option to pass arguments and then change the build mechanism underneath | 01:30:41 |
Church | Yah makes sense | 01:31:05 |
Church | If I can just declare this in the machines config however that's fine | 01:31:16 |
Church | Zhaofeng Li: More follow up questions, is there a way to specify using a remote builder for a specific node? | 23:44:55 |
Church | Hmm looks like it does... | 23:47:00 |
Church | Is there an example of the structure of it?
That doesn't seem to be specified anywhere I can see in the repo or the PR adding it. | 23:52:28 |
| 2 Jul 2021 |
Zhaofeng Li | There's an option to specify the machine file, but not per-machine. It's passed as `--options builders ` to the Nix command | 01:08:29 |
Zhaofeng Li | * There's an option to specify the machine file, but it's not controllable per-machine. It's passed as `--options builders ` to the Nix command | 01:08:48 |
Zhaofeng Li | In the current setup, multiple machines are built at once. You can control how many machines are in a batch, but there isn't an option to separate a single machine out at the moment | 01:09:55 |
Church | Hmm is there an example of the machine file? | 01:13:17 |
Church | I just need to define at least two builders, my local, and a remote for arm64 | 01:13:37 |
Zhaofeng Li | I think it's something like
```
ssh://hostname aarch64-linux
``` | 01:17:42 |
Church | Ah got it.
Do I need to include a line for my local builders? | 01:21:17 |
Church | Seems not, cool. Guess I'll see how this works. | 01:24:55 |
Church | Zhaofeng Li: Okay are remote builders used for only part of the build or distributing the load of it? Rather then running the whole build on it?
Seems to work if my machine has binfmt enabled so it can build for aarch64 as well.
But if I turn that off so I can hopefully do all building on the remote machine it fails out due to being unable to build on the local host.
| 01:40:01 |
Church | Never mind, error on my part I think. | 01:43:52 |
Church | Or not, yeah seems I can only distribute the load.
Should see about a patch to allow for specifying all building be done on a remote builder for a specific node. | 01:46:00 |
spudly | Are there known issues with Nixops compatibility in Nixos now because of Python 2 dependencies? All of a sudden I'm unable to reference the nixops package, nixos-rebuild switch or home-manager switch are dying with error: certifi-2021.05.30 not supported for interpreter python2.7 errors. | 01:57:56 |
Linux Hackerman | In reply to @noah:matrix.chatsubo.cafe Or not, yeah seems I can only distribute the load.
Should see about a patch to allow for specifying all building be done on a remote builder for a specific node. You can pass --max-jobs 0 to prevent local builds. Not for a specific node, but it's probably already useful? | 06:31:48 |
Linux Hackerman | In reply to @noah:matrix.chatsubo.cafe Or not, yeah seems I can only distribute the load.
Should see about a patch to allow for specifying all building be done on a remote builder for a specific node. I think passing --extra-platforms '' will also disable building for anything other than the local platform locally. | 06:32:54 |