| 24 Jun 2021 |
Taneb | Yeah, I noticed that the other day. Not sure how to fix it though :( | 07:57:34 |
| vertebralsilence joined the room. | 13:21:19 |
| 25 Jun 2021 |
ajs124 | Does hydra have a way to pass build options, e.g. something like a sandbox exception to a specific job(set)? | 13:47:15 |
| 26 Jun 2021 |
| Jez (he/him) joined the room. | 08:44:39 |
| wucke13 joined the room. | 08:46:07 |
wucke13 | Is it possible to have hydra build the nixosConfigurations in a flake? | 08:46:43 |
wucke13 | And: Whats need to be done to make hydra use binfmt to build for non native systems (e.g. aarch64 on a x86_64 host)? | 09:28:47 |
Mic92 (Old) | binfmt support is documented here: https://github.com/cleverca22/nixos-configs/blob/master/qemu.nix | 09:55:38 |
manveru | Mic92: isn't that a pretty old way of doing it? i just set boot.binfmt.emulatedSystems = [ "aarch64-linux" "armv7l-linux" ]; | 09:59:52 |
manveru | though i haven't tried that with hydra... it works for normal nix builds | 10:00:30 |
Mic92 (Old) | might be... I took it from here: https://github.com/nix-community/nixos-generators#cross-compiling | 10:00:40 |
Mic92 (Old) | If it works for normal builds it should work for hydra. | 10:00:53 |
wucke13 | It is not working for hydra. Hydra just claims that no machine is available for that arch. So there must be some way to tell hydra that the local machine supports said arch? | 10:47:39 |
das_j | wucke13: Is aarch64-linux mentioned in your /etc/nix/machines file? | 10:48:04 |
wucke13 | Said file does not exist | 10:48:37 |
wucke13 | So I guess, that's a No :D | 10:48:44 |
das_j | should be something like localhost x86_64-linux,i686-linux - 32 1 kvm,nixos-test,big-parallel,benchmark | 10:49:39 |
das_j | there is a nixos option for that | 10:49:43 |
das_j |
nix.buildMachines
| 10:50:01 |
das_j | (you should obviously add aarch64-linux to the systems) | 10:50:43 |
wucke13 | Reading through the module: Is there no way to omit sshing to localhost? | 10:52:46 |
das_j | there is. If the string is "localhost" it just implicitly builds locally ;) | 10:53:03 |
das_j | I learned that the hard way when I changed that string to the real hostname | 10:53:20 |
wucke13 | locahost for hostName? | 10:53:24 |
das_j | yes | 10:53:27 |
Rick (Mindavi) | And keep in mind that emulation is slow :) | 10:54:07 |
wucke13 | Would I also have to add i386-linux or is it implicitly always enabled if x86_64-linux is present? | 10:54:19 |
wucke13 | In reply to @rick:matrix.ciphernetics.nl And keep in mind that emulation is slow :) Time plays no role, it's university stuff :D | 10:54:32 |
das_j | it's i686-linux and you need to add it if you want to build for it | 10:54:35 |
wucke13 | Ah, got me. Thanks! | 10:54:47 |