{ 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; }; }