summaryrefslogtreecommitdiff
path: root/config/hydra.nix
blob: 11fc806be1488ca48b6b2a5011f20ae830c411b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ config, lib, pkgs, ... }:
let
  hydraPort = (import ../data/aliases.nix).services.hydra.port;
in
{
  networking.firewall.allowedTCPPorts = [ hydraPort ];

  services.hydra = {
    enable = true;
    hydraURL = "https://hydra.orbekk.com";
    notificationSender = "kj+hydra@orbekk.com";
    port = hydraPort;
  };
  
  nix = {
    distributedBuilds = true;
    nrBuildUsers = 30;
    # Enable this if I run low on disk.
    gc.automatic = lib.mkForce false;
    buildMachines = [
      {
        hostName = "localhost";
        systems = [ "x86_64-linux" "i686-linux" ];
        maxJobs = "16";
        supportedFeatures = [ "kvm" "nixos-test" "big-parallel" "benchmark" ]; 
      }
    ];
    extraOptions = "auto-optimise-store = true";
  };
  nixpkgs.config = {
    allowUnfree = true;
  };
}