diff options
author | Emile <git@emile.space> | 2024-03-09 22:56:01 +0100 |
---|---|---|
committer | Emile <git@emile.space> | 2024-03-09 22:56:01 +0100 |
commit | 55ee036fd7ebed24097c8da1ca8a0b0829264670 (patch) | |
tree | 9c600d75a4f59f8ec253c5caadc1f77b2cecb0da /nix/hosts/corrino/www/hydra.emile.space.nix |
big bang
Diffstat (limited to 'nix/hosts/corrino/www/hydra.emile.space.nix')
-rw-r--r-- | nix/hosts/corrino/www/hydra.emile.space.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/nix/hosts/corrino/www/hydra.emile.space.nix b/nix/hosts/corrino/www/hydra.emile.space.nix new file mode 100644 index 0000000..2607ac0 --- /dev/null +++ b/nix/hosts/corrino/www/hydra.emile.space.nix @@ -0,0 +1,57 @@ + { ... }: + +{ + services.nginx.virtualHosts."hydra.emile.space" = { + forceSSL = true; + enableACME = true; + + locations = { + "/" = { + proxyPass = "http://127.0.0.1:3001"; + }; + }; + }; + + # make hydra send emails + services.postfix = { + enable = true; + setSendmail = true; + }; + + services.hydra = { + enable = true; + + listenHost = "*"; + port = 3001; + hydraURL = "https://hydra.emile.space"; # externally visible URL + + # Directory that holds Hydra garbage collector roots. + gcRootsDir = "/nix/var/nix/gcroots/hydra"; + + + # a standalone hydra will require you to unset the buildMachinesFiles list to avoid using a nonexistant /etc/nix/hosts + buildMachinesFiles = []; + # you will probably also want, otherwise *everything* will be built from scratch + useSubstitutes = true; + + + # notification settings + smtpHost = "mail.emile.space"; + notificationSender = "hydra@emile.space"; + + # Threshold of minimum disk space (GiB) to determine if the evaluator should run or not. + minimumDiskFreeEvaluator = 20; + + # Threshold of minimum disk space (GiB) to determine if the queue runner should run or not. + minimumDiskFree = 20; + + # Path to a file containing the logo of your Hydra instance + # logo = ; + + extraConfig = '' + <git-input> + timeout = 3600 + </git-input> + ''; + }; +} |