add hydra

This commit is contained in:
stubbfelnewpc
2022-09-27 19:38:44 +02:00
parent f11fcdae75
commit 120ba60838
2 changed files with 34 additions and 0 deletions

View File

@@ -21,5 +21,6 @@
./docker.nix
./mailcow.nix
./unciv.nix
./hydra.nix
];
}

33
services/hydra.nix Normal file
View File

@@ -0,0 +1,33 @@
{ config, pkgs, ... }:
let
lAddress = "127.0.0.1";
lPort = 3001;
in
{
services.nginx.virtualHosts."hydra.stubbe.rocks" = {
enableACME = false;
forceSSL = false;
locations."/".proxyPass = "http://${lAddress}:${toString lPort}";
};
services.hydra = {
enable = true;
port = lPort;
hydraURL = "hydra.localhost";
notificationSender = "notitification@hydra.localhost";
};
services.postgresql = {
identMap =
''
hydra-users hydra hydra
hydra-users hydra-queue-runner hydra
hydra-users hydra-www hydra
hydra-users root postgres
hydra-users postgres postgres
'';
};
}