diff --git a/services/enabled.nix b/services/enabled.nix index 4ba0ac7..f39d8e5 100644 --- a/services/enabled.nix +++ b/services/enabled.nix @@ -21,5 +21,6 @@ ./docker.nix ./mailcow.nix ./unciv.nix + ./hydra.nix ]; } diff --git a/services/hydra.nix b/services/hydra.nix new file mode 100644 index 0000000..da597fa --- /dev/null +++ b/services/hydra.nix @@ -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 + ''; + }; + +}