This commit is contained in:
zuckerberg
2021-02-23 12:52:50 -05:00
parent 36b6081783
commit 874bc20b65
2 changed files with 27 additions and 0 deletions

26
common/server/hydra.nix Normal file
View File

@@ -0,0 +1,26 @@
{ config, pkgs, ... }:
let
domain = "hydra.neet.dev";
port = 3000;
notifyEmail = "hydra@neet.dev";
in
{
# the lounge client
services.nginx.virtualHosts."${domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:${toString port}";
};
};
services.hydra = {
enable = true;
port = 3000;
hydraURL = "https://${domain}";
useSubstitutes = true;
notificationSender = notifyEmail;
buildMachinesFiles = [];
};
}