From 55ee036fd7ebed24097c8da1ca8a0b0829264670 Mon Sep 17 00:00:00 2001 From: Emile Date: Sat, 9 Mar 2024 22:56:01 +0100 Subject: big bang --- nix/hosts/corrino/www/hydra.emile.space.nix | 57 +++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 nix/hosts/corrino/www/hydra.emile.space.nix (limited to 'nix/hosts/corrino/www/hydra.emile.space.nix') 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 = '' + + timeout = 3600 + + ''; + }; +} -- cgit 1.4.1