diff --git a/common/server/hydra.nix b/common/server/hydra.nix new file mode 100644 index 0000000..8f53ab9 --- /dev/null +++ b/common/server/hydra.nix @@ -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 = []; + }; +} \ No newline at end of file diff --git a/neet.dev/configuration.nix b/neet.dev/configuration.nix index a7881ef..209540c 100644 --- a/neet.dev/configuration.nix +++ b/neet.dev/configuration.nix @@ -10,6 +10,7 @@ ../common/server/mumble.nix ../common/server/gitlab.nix ../common/server/video-stream.nix + ../common/server/hydra.nix ]; # Use the GRUB 2 boot loader.