1
0

hosts/hydra-1: Move hydra config to seperate file

This commit is contained in:
2024-04-22 20:42:23 +02:00
parent 7ead072e53
commit 2d45cb826b
2 changed files with 30 additions and 21 deletions

28
hosts/hydra-1/hydra.nix Normal file
View File

@@ -0,0 +1,28 @@
{ ... }:
{
services.hydra = {
enable = true;
port = 3001;
hydraURL = "https://hydra.clerie.de";
listenHost = "localhost";
notificationSender = "noreply@hydra.clerie.de";
useSubstitutes = true;
extraConfig = ''
binary_cache_public_uri = https://nix-cache.clerie.de
'';
};
services.nginx.virtualHosts = {
"hydra.clerie.de" = {
enableACME = true;
forceSSL = true;
locations = {
"/" = {
proxyPass = "http://localhost:3001";
};
};
};
};
}