From 3ec2db6a367f42161b7ad5f9e0b38fae0f1f1aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Thu, 13 May 2021 21:12:11 +0100 Subject: [PATCH] Add hydra --- configuration/default.nix | 16 +++++++++------- configuration/services/hydra.nix | 11 +++++++++++ 2 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 configuration/services/hydra.nix diff --git a/configuration/default.nix b/configuration/default.nix index f6ff072..2a9221a 100644 --- a/configuration/default.nix +++ b/configuration/default.nix @@ -2,10 +2,11 @@ { imports = [ - ./services/gitea.nix - ./services/minecraft.nix - ./services/nextcloud.nix - ./services/webserver.nix + # ./services/gitea.nix + ./services/hydra.nix + # ./services/minecraft.nix + # ./services/nextcloud.nix + # ./services/webserver.nix ./ids.nix ]; @@ -63,9 +64,10 @@ locations."/" = { proxyPass = "http://localhost:${toString port}"; }; } // extra; in { - "tlater.net" = host 3002 { serverAliases = [ "www.tlater.net" ]; }; - "gitea.tlater.net" = host 3000 { }; - "nextcloud.tlater.net" = host 3001 { }; + # "tlater.net" = host 3002 { serverAliases = [ "www.tlater.net" ]; }; + # "gitea.tlater.net" = host 3000 { }; + # "nextcloud.tlater.net" = host 3001 { }; + "hydra.tlater.net" = host 3003 { }; }; }; diff --git a/configuration/services/hydra.nix b/configuration/services/hydra.nix new file mode 100644 index 0000000..3b7c136 --- /dev/null +++ b/configuration/services/hydra.nix @@ -0,0 +1,11 @@ +{ ... }: + +{ + services.hydra = { + enable = true; + port = 3003; + + hydraURL = "hydra.tlater.net"; + notificationSender = "hydra@tlater.net"; + }; +}