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/ewanick.com.nix b/nixos-apps/ewanick.com.nix index bbc2c00..e974d42 100644 --- a/nixos-apps/ewanick.com.nix +++ b/nixos-apps/ewanick.com.nix @@ -22,7 +22,7 @@ in ewanick-site = { enable = true; description = "A blog powered by Emanote running solely on Markdown files."; - path = with pkgs; [ nix git ]; + path = with pkgs; [ nix git emanote ]; script = '' cd ${PROJECT_ROOT} nix run github:srid/emanote --accept-flake-config \ diff --git a/nixos-apps/ewanick.com/index.yaml b/nixos-apps/ewanick.com/index.yaml index 8accb66..86be8d7 100644 --- a/nixos-apps/ewanick.com/index.yaml +++ b/nixos-apps/ewanick.com/index.yaml @@ -35,4 +35,4 @@ pandoc: photoframe-below: clear-right page-note: text-sm text-gray-600 flex items-center justify-center my-4 italic - editor-note: text-gray-500 text-sm \ No newline at end of file + editor-note: text-gray-500 text-sm diff --git a/nixos-apps/hydra.fancyTypist.com.nix b/nixos-apps/hydra.fancyTypist.com.nix new file mode 100644 index 0000000..f4ba29a --- /dev/null +++ b/nixos-apps/hydra.fancyTypist.com.nix @@ -0,0 +1,26 @@ +let + baseUrl = "hydra.fancyTypist.com"; + HOST = "localhost"; + PORT = 8246; +in +{ + services.hydra = { + enable = true; + port = PORT; + hydraURL = "https://${HOST}:${toString PORT}"; + notificationSender = "hydra@fancyTypist.com"; + buildMachinesFiles = [ ]; + useSubstitutes = true; + }; + + services.caddy = { + enable = true; + virtualHosts = { + "${baseUrl}" = { + extraConfig = '' + reverse_proxy ${HOST}:${toString PORT} + ''; + }; + }; + }; +}