From c3b97e1b2be997a6372376d59e6b2518b34ec58b Mon Sep 17 00:00:00 2001 From: Bill Ewanick Date: Sun, 14 Jan 2024 01:00:17 -0500 Subject: [PATCH] Add hydra server --- nixos-apps/default.nix | 3 ++- nixos-apps/hydra.fancyTypist.com.nix | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 nixos-apps/hydra.fancyTypist.com.nix diff --git a/nixos-apps/default.nix b/nixos-apps/default.nix index 8263a5b..264a39f 100644 --- a/nixos-apps/default.nix +++ b/nixos-apps/default.nix @@ -9,7 +9,8 @@ ./git.ewanick.com.nix ./paperless.ewanick.com.nix - ./fancytypist.com.nix + # ./fancytypist.com.nix + ./hydra.fancyTypist.com.nix ]; # when in doubt, clear away the certs with diff --git a/nixos-apps/hydra.fancyTypist.com.nix b/nixos-apps/hydra.fancyTypist.com.nix new file mode 100644 index 0000000..6535789 --- /dev/null +++ b/nixos-apps/hydra.fancyTypist.com.nix @@ -0,0 +1,25 @@ +let + baseUrl = "hydra.fancyTypist.com"; + HOST = "localhost"; + PORT = "5567"; +in +{ + services.hydra = { + enable = true; + hydraURL = "https://${HOST}:${PORT}"; + notificationSender = "hydra@localhost"; + buildMachinesFiles = [ ]; + useSubstitutes = true; + }; + + services.caddy = { + enable = true; + virtualHosts = { + "${baseUrl}" = { + extraConfig = '' + reverse_proxy ${HOST}:${PORT} + ''; + }; + }; + }; +}