From 9388741ab4ca0bec25198f35c5c2e665219b157b Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Fri, 16 May 2025 07:34:03 -0600 Subject: [PATCH] Add new file --- homelab/hydra/default.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 homelab/hydra/default.nix diff --git a/homelab/hydra/default.nix b/homelab/hydra/default.nix new file mode 100644 index 0000000..e6c46ba --- /dev/null +++ b/homelab/hydra/default.nix @@ -0,0 +1,22 @@ +{ config, pkgs, lib, ... }: + +{ + services.hydra = { + enable = true; + hydraURL = "localhost:3000"; + buildMachinesFiles = [ "/etc/nix/machines" ]; + notificationSender = "hydra@localhost"; + useSubstitutes = true; + }; + + nix.buildMachines = [ + { + hostName = "localhost"; + protocol = null; +# system = "x86_64-linux"; + systems = [ "x86_64-linux" "aarch64-linux" ]; + supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"]; + maxJobs = 8; + } + ]; +}