1
1
Fork 0

Add hydra server

main
Bill Ewanick 2024-01-14 01:00:17 -05:00
parent d4735ff7c3
commit fa0343bdbf
3 changed files with 32 additions and 6 deletions

View File

@ -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

View File

@ -22,11 +22,10 @@ in
ewanick-site = {
enable = true;
description = "A blog powered by Emanote running solely on Markdown files.";
path = with pkgs; [ nix git ];
path = with pkgs; [ emanote ];
script = ''
cd ${PROJECT_ROOT}
nix run github:srid/emanote --accept-flake-config \
-- run \
emanote run \
--port ${PORT} \
--host ${HOST}
'';

View File

@ -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}
'';
};
};
};
}