From e3d4675201f559053589925823afdaf50e58eca6 Mon Sep 17 00:00:00 2001 From: dadada Date: Mon, 4 Jul 2022 23:15:45 +0200 Subject: [PATCH] Revert "pruflas: remove hydra" This reverts commit 65d06f563ff772532e76325cd70ca3ffe016724d. --- nixos/pruflas/configuration.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/nixos/pruflas/configuration.nix b/nixos/pruflas/configuration.nix index 5cf9e09..1709888 100644 --- a/nixos/pruflas/configuration.nix +++ b/nixos/pruflas/configuration.nix @@ -9,6 +9,36 @@ in { services.logind.lidSwitch = "ignore"; + services.hydra = { + enable = true; + package = pkgs.hydra-unstable; + hydraURL = "https://hydra.dadada.li"; + notificationSender = "hydra@localhost"; + buildMachinesFiles = [ ]; + useSubstitutes = true; + listenHost = "hydra.dadada.li"; + port = 3000; + }; + + nix.buildMachines = [ + { + hostName = "localhost"; + system = "x86_64-linux"; + supportedFeatures = [ "kvm" "nixos-test" "big-parallel" "benchmark" ]; + maxJobs = 8; + } + ]; + + services.nginx = { + recommendedTlsSettings = true; + recommendedOptimisation = true; + recommendedGzipSettings = true; + logError = "/dev/null"; + appendHttpConfig = '' + access_log off; + ''; + }; + dadada.admin.enable = true; dadada.backupClient = { @@ -34,6 +64,8 @@ in { ]; }; + boot.kernelModules = [ "kvm-intel" ]; + # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true;