hosts/hydra-1: Move hydra config to seperate file
This commit is contained in:
28
hosts/hydra-1/hydra.nix
Normal file
28
hosts/hydra-1/hydra.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.hydra = {
|
||||
enable = true;
|
||||
port = 3001;
|
||||
hydraURL = "https://hydra.clerie.de";
|
||||
listenHost = "localhost";
|
||||
notificationSender = "noreply@hydra.clerie.de";
|
||||
useSubstitutes = true;
|
||||
extraConfig = ''
|
||||
binary_cache_public_uri = https://nix-cache.clerie.de
|
||||
'';
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts = {
|
||||
"hydra.clerie.de" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://localhost:3001";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Reference in New Issue
Block a user