aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2024-03-29 12:09:04 +0100
committerMax Audron <audron@cocaine.farm>2024-03-29 12:09:04 +0100
commitbfd3886bc530d98f9bee85f2fc8233797ffe6ce3 (patch)
tree5f8fec2503d5aaf09ef8b9e6b42ceb5dc058424d /modules
parentextend postgresql hpa for podman ips (diff)
add hydra secrets
Diffstat (limited to 'modules')
-rw-r--r--modules/hydra/default.nix32
-rw-r--r--modules/hydra/hydra.conf8
2 files changed, 35 insertions, 5 deletions
diff --git a/modules/hydra/default.nix b/modules/hydra/default.nix
index 7e0064b..8a7c353 100644
--- a/modules/hydra/default.nix
+++ b/modules/hydra/default.nix
@@ -11,15 +11,37 @@ with self.lib.nginx;
extraConfig = lib.readFile ./hydra.conf;
};
- secrets = {
- hydraLdap = {
- source = ../../secrets/authentik/hydra;
- dest = "/var/lib/hydra/ldap-password.conf";
+ secrets =
+ let
owner = "hydra";
group = "hydra";
permissions = "0440";
+ in
+ {
+ hydraLdap = {
+ inherit owner group permissions;
+ source = ../../secrets/hydra/ldap-password.conf;
+ dest = "/var/lib/hydra/ldap-password.conf";
+ };
+
+ hydraGit = {
+ inherit owner group permissions;
+ source = ../../secrets/hydra/git.conf;
+ dest = "/var/lib/hydra/git.conf";
+ };
+
+ hydraPrivKey = {
+ inherit owner group permissions;
+ source = ../../secrets/hydra/priv.key;
+ dest = "/var/lib/hydra/priv.key";
+ };
+
+ hydraPubKey = {
+ inherit owner group permissions;
+ source = ../../secrets/hydra/pub.key;
+ dest = "/var/lib/hydra/pub.key";
+ };
};
- };
services.nginx = {
enable = true;
diff --git a/modules/hydra/hydra.conf b/modules/hydra/hydra.conf
index 27a1046..92114e2 100644
--- a/modules/hydra/hydra.conf
+++ b/modules/hydra/hydra.conf
@@ -1,3 +1,11 @@
+store_uri = file:///srv/nix-cache?secret-key=/var/lib/hydra/priv.key
+
+include /var/lib/hydra/git.conf
+
+<dynamicruncommand>
+ enable = 1
+</dynamicruncommand>
+
<ldap>
<config>
<credential>
lskdMax Audron-1/+124 2025-10-10update nixpkgs-unstableMax Audron-3/+3 2025-10-10setup mailserverMax Audron-27/+213 2025-09-20replace dns bgp anouncementMax Audron-2/+2 2025-09-15update flaresolverrMax Audron-1/+1 2025-09-07add audron windows wg keyMax Audron-0/+8 2025-09-02switch out vultr dns ipv4 ipMax Audron-1/+5 2025-08-11disable homepage trackersMax Audron-3/+3 2025-08-11add mail serverMax Audron-1/+245 2025-08-05add prometheus alerting rulesMax Audron-38/+144 2025-08-01add homepage dashboardMax Audron-3/+284 2025-08-01disable not used gameserversMax Audron-1/+2 2025-08-01add minecraft prometheus exporterMax Audron-3/+67 2025-08-01more monitoring & scrape config shortcutsMax Audron-68/+63 2025-08-01update garage to 2.0Max Audron-6/+10 2025-07-31fix authentik-ldap port bindingsMax Audron-0/+5 2025-07-31update to nixos 25.05Max Audron-113/+65 2025-07-31add more monitoring exporters and scrapersMax Audron-17/+57 2025-07-30try to run authentik nativelyMax Audron-26/+303 2025-07-30more metricsMax Audron-1/+41 2025-07-30enable firewallsMax Audron-1/+39