mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
added a basic hydra
This commit is contained in:
parent
b7ecc2984d
commit
d41c30a414
4 changed files with 28 additions and 3 deletions
|
@ -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";
|
||||
|
||||
|
|
19
hosts/nuc/modules/hydra/default.nix
Normal file
19
hosts/nuc/modules/hydra/default.nix
Normal 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}";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue