41 lines
806 B
Nix
41 lines
806 B
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
lAddress = "127.0.0.1";
|
|
lPort = 3001;
|
|
in
|
|
|
|
{
|
|
services.nginx.virtualHosts."hydra.stubbe.rocks" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/".proxyPass = "http://${lAddress}:${toString lPort}";
|
|
};
|
|
|
|
services.hydra = {
|
|
enable = true;
|
|
port = lPort;
|
|
hydraURL = "hydra.localhost";
|
|
notificationSender = "notitification@hydra.localhost";
|
|
extraConfig = ''
|
|
<dynamicruncommand>
|
|
enable = 1
|
|
</dynamicruncommand>
|
|
'';
|
|
};
|
|
|
|
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
|
|
'';
|
|
};
|
|
|
|
users.users.hydra-queue-runner.extraGroups = [ "docker" ];
|
|
|
|
}
|