added a basic hydra

This commit is contained in:
Rouven Seifert 2023-05-01 21:05:49 +02:00
parent b7ecc2984d
commit d41c30a414
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
4 changed files with 28 additions and 3 deletions

View file

@ -8,6 +8,7 @@
./modules/adguard
./modules/networks
./modules/backup
./modules/hydra
./modules/nextcloud
./modules/vaultwarden
./modules/nginx
@ -21,6 +22,10 @@
tmp.useTmpfs = true;
};
services.btrfs.autoScrub.enable = true;
nix.settings = {
cores = 3;
auto-optimise-store = true;
};
time.timeZone = "Europe/Berlin";

View file

@ -0,0 +1,19 @@
{ config, ... }:
let
domain = "hydra.rfive.de";
in
{
services.hydra = {
enable = true;
port = 4000;
hydraURL = domain;
notificationSender = "hydra@localhost";
};
services.nginx.virtualHosts."${domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.hydra.port}";
};
};
}