!zghijEASpYQWYFzriI:nixos.org

Hydra

375 Members
109 Servers

Load older messages


SenderMessageTime
26 Jun 2021
@janne.hess:helsinki-systems.dedas_jhydra knows it can build there11:05:33
@janne.hess:helsinki-systems.dedas_jif it doesn't work, your binfmt might be misconfigured11:05:50
@janne.hess:helsinki-systems.dedas_j

we use something along the lines of

    boot.binfmt.registrations = {
      qemu-aarch64 = {
        magicOrExtension = "\\x7fELF\\x02\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\xb7";
        mask = "\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xfe\\xff\\xff";
        interpreter = "${pkgs.qemu}/bin/qemu-aarch64";
      };
    };

    nix.sandboxPaths  [ "/run/binfmt" "${pkgs.qemu}" ];

11:07:16
@wucke13:matrix.orgwucke13 I'm able to locally build the thing on that machine using nix build <the flake>#aarch64.<mypackage> though 11:09:15
@wucke13:matrix.orgwucke13So I would assume that my binfmt setup is healthy11:09:33
@janne.hess:helsinki-systems.dedas_jyeah it probably is11:09:43
@wucke13:matrix.orgwucke13 * I'm able to locally build the thing on that machine using nix build <the flake>#packages.aarch64-linux.<mypackage> though 11:09:46
@wucke13:matrix.orgwucke13I'll try to restart all hydra services11:10:22
@wucke13:matrix.orgwucke13
In reply to @wucke13:matrix.org
even if I have only a localhost machine, I also need to enable nix.distributedBuilds ?
So, first thing: This seems to not be necessary. Just changing localhost already propagated to hydra, according to the admin/machines overview
11:16:20
@wucke13:matrix.orgwucke13 And indeed, rebooting the machine did the trick. So, thank you das_j , you solved all my issues in this regard :) 11:17:28
@wucke13:matrix.orgwucke13
In reply to @wucke13:matrix.org
Is it possible to have hydra build the nixosConfigurations in a flake?
Any chance that you also know an answer to this one? 🙂
11:18:43
@andreas.schraegle:helsinki-systems.deajs124 one note about the machines file, that might be useful, is that you don't have to use /etc/nix/machines, but can give hydra its own machines file, e.g. with services.hydra.buildMachinesFiles
no idea about the flakes thing, though
11:21:28
@janne.hess:helsinki-systems.dedas_j
In reply to @wucke13:matrix.org
Any chance that you also know an answer to this one? 🙂
No, I prefer stable nix
11:26:38
@janne.hess:helsinki-systems.dedas_j
In reply to @andreas.schraegle:helsinki-systems.de
one note about the machines file, that might be useful, is that you don't have to use /etc/nix/machines, but can give hydra its own machines file, e.g. with services.hydra.buildMachinesFiles
no idea about the flakes thing, though
Additionaly, the queue runner reloads the file every 10 minutes or so, so you don't even have to restart it
11:27:08
@tim:stratum0.orgdadada (they/them) joined the room.12:12:49
@tim:stratum0.orgdadada (they/them) wucke13 hydraJobs."<attr>"."<system>" = derivation; should work. 12:13:53
@tim:stratum0.orgdadada (they/them) See https://nixos.wiki/wiki/Flakes There is an overview of the most common keys in outputs and what they are used for. 12:15:18
@wucke13:matrix.orgwucke13 dadada: What a surprise to see you here 😀 14:17:40
@wucke13:matrix.orgwucke13
In reply to @tim:stratum0.org
wucke13 hydraJobs."<attr>"."<system>" = derivation; should work.
To come back to my question, where in nixosConfigurations.my-machine do I find the relevant derivation which builds most of the configuration (without generating an ISO or such stuff, I just want the store to be populated with everything needed to actually build said config).
14:21:50
@wucke13:matrix.orgwucke13 Answering my own question: I think .#nixosConfigurations.my-machine.config.system.build.toplevel will do :) 14:29:26
@tim:stratum0.orgdadada (they/them)
In reply to @wucke13:matrix.org
Answering my own question: I think .#nixosConfigurations.my-machine.config.system.build.toplevel will do :)
Thanks for posting the solution. I've also been looking for this derivation.
15:33:49
@wucke13:matrix.orgwucke13

Well, in that case I have a nother convenience snippet:

hydraJobs = builtins.listToAttrs (lib.mapAttrsToList (machine: config:
  lib.nameValuePair machine {
    "x86_64-linux" = config.config.system.build.toplevel;
  }) nixosConfigurations);

Any feedback on how the system can be read from an existing nixosConfiguration would be welcome, to fix the remaining ugly code

16:39:36
@wucke13:matrix.orgwucke13

And again I think I have an answer to my own question:

hydraJobs = builtins.listToAttrs (lib.mapAttrsToList (machine: config:
  lib.nameValuePair machine {
    "${config.config.nixpkgs.system}" = config.config.system.build.toplevel;
  }) nixosConfigurations);

The system can be read from .#nixosConfigurations.my-machine.config.nixpkgs.system

18:31:54
@wucke13:matrix.orgwucke13Even more noise: where can the timeout be configured for hydra jobs? Couldn't find the term timeout in the manual nor the nixos options18:54:02
28 Jun 2021
@grahamc:nixos.org@grahamc:nixos.org wucke13: I https://github.com/NixOS/hydra/pull/979/files 14:01:06
@grahamc:nixos.org@grahamc:nixos.orgRFR^14:31:05
@grahamc:nixos.org@grahamc:nixos.org wucke13: don't just 😏, what do you think? :) 15:01:50
@wucke13:matrix.orgwucke13I will leave a review later tonight. First impression was 😏 though 😄16:03:55
29 Jun 2021
@grahamc:nixos.org@grahamc:nixos.orgJust deployed #887 adding how long an evaluation took to https://hydra.nixos.org/jobset/nixos/staging15:10:45
@janne.hess:helsinki-systems.dedas_jthis is starting to look more and more like my hydra ;)15:11:37

Show newer messages


Back to Room ListRoom Version: 6