diff --git a/hosts/hydra-1/configuration.nix b/hosts/hydra-1/configuration.nix index 3482633..efb504b 100644 --- a/hosts/hydra-1/configuration.nix +++ b/hosts/hydra-1/configuration.nix @@ -21,5 +21,28 @@ networking.defaultGateway = { address = "192.168.10.1"; interface = "ens19"; }; networking.nameservers = [ "2001:638:904:ffcc::3" "2001:638:904:ffcc::4" "141.24.40.3" "141.24.40.4" ]; + services.hydra = { + enable = true; + port = 3001; + hydraURL = "https://hydra.clerie.de"; + listenHost = "localhost"; + notificationSender = "noreply@hydra.clerie.de"; + }; + + services.nginx.enable = true; + services.nginx.virtualHosts = { + "hydra.clerie.de" = { + enableACME = true; + forceSSL = true; + locations = { + "/" = { + proxyPass = "http://localhost:3001"; + }; + }; + }; + }; + + networking.firewall.allowedTCPPorts = [ 80 443 ]; + system.stateVersion = "22.11"; }