From b5efaa433c1c6f53413b0443a18c1aea95bd2215 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Thu, 1 Dec 2022 08:46:14 -0500 Subject: Update nixos --- config/hydra.nix | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) (limited to 'config/hydra.nix') diff --git a/config/hydra.nix b/config/hydra.nix index cb9c8e6..5ebc605 100644 --- a/config/hydra.nix +++ b/config/hydra.nix @@ -1,8 +1,6 @@ { config, lib, pkgs, ... }: -let - hydraPort = (import ../data/aliases.nix).services.hydra.port; -in -{ +let hydraPort = (import ../data/aliases.nix).services.hydra.port; +in { networking.firewall.allowedTCPPorts = [ hydraPort ]; virtualisation.virtualbox.host.enable = true; @@ -11,7 +9,7 @@ in enable = true; hydraURL = "https://hydra.orbekk.com"; notificationSender = "kj+hydra@orbekk.com"; - buildMachinesFiles = []; + buildMachinesFiles = [ ]; useSubstitutes = true; port = hydraPort; extraConfig = '' @@ -40,24 +38,20 @@ in touch /opt/secret/hydra_key/initialized fi ''; - }; + }; 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" ]; - } - ]; + 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; - }; + nixpkgs.config = { allowUnfree = true; }; } -- cgit v1.2.3