From 18bb0173bef7c959d8ba6ff07a2fa818dafaf067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Mon, 15 Sep 2025 11:58:01 +0200 Subject: [PATCH] Enable hydra on weasel --- m/weasel/configuration.nix | 1 + m/weasel/hydra.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 m/weasel/hydra.nix diff --git a/m/weasel/configuration.nix b/m/weasel/configuration.nix index a6a064a..63c7967 100644 --- a/m/weasel/configuration.nix +++ b/m/weasel/configuration.nix @@ -5,6 +5,7 @@ ../common/ssf.nix ../module/hut-substituter.nix ./virtualization.nix + ./hydra.nix ]; # Select this using the ID to avoid mismatches diff --git a/m/weasel/hydra.nix b/m/weasel/hydra.nix new file mode 100644 index 0000000..2a4eecb --- /dev/null +++ b/m/weasel/hydra.nix @@ -0,0 +1,13 @@ +{ config, ... }: +{ + services.hydra = { + enable = true; + hydraURL = "http://localhost:3001"; # externally visible URL + notificationSender = "hydra@jungle.bsc.es"; # e-mail of Hydra service + port = 3001; + # a standalone Hydra will require you to unset the buildMachinesFiles list to avoid using a nonexistant /etc/nix/machines + buildMachinesFiles = [ ]; + # you will probably also want, otherwise *everything* will be built from scratch + useSubstitutes = true; + }; +}