Compare commits

...

2 Commits

Author SHA1 Message Date
519b6eeeea weasel: enable hydra tcp port in firewall 2025-09-19 11:20:56 +02:00
a870e4b5fa Enable hydra on weasel 2025-09-19 11:20:56 +02:00
2 changed files with 16 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
imports = [
../common/ssf.nix
./virtualization.nix
./hydra.nix
];
# Select this using the ID to avoid mismatches

15
m/weasel/hydra.nix Normal file
View File

@@ -0,0 +1,15 @@
{ 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;
};
networking.firewall.allowedTCPPorts = [ config.services.hydra.port ];
}