Hydra: Difference between revisions

imported>Fadenb
m Imperative Building: change example to current stable version
imported>Pacien
Add virtual machine note
Line 27: Line 27:
</syntaxHighlight>
</syntaxHighlight>


=== Virtual machine ===
If not configured explicitely to do otherwise, Hydra will specify localhost as the default build machine. By default, system features enabling builds to be performed in virtual machines like "kvm" or "nixos-test" are not enabled. Such jobs will be queued indefinitely. Those options can be activated as follows:
<syntaxHighlight lang=nix>
{
  nix.buildMachines = [
    { hostName = "localhost";
      system = "x86_64-linux";
      supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
      maxJobs = 8;
    }
  ];
}
</syntaxHighlight>


== Build a single Package from nixpkgs ==
== Build a single Package from nixpkgs ==