From 7afc328ae1f57b9d17be0b78a2d8bb993ecc58c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 7 Jun 2024 23:45:30 +0300 Subject: [PATCH] mtworx: use the fra1-a remote builder --- hosts/fra1-a/configuration.nix | 1 + hosts/mtworx/configuration.nix | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/hosts/fra1-a/configuration.nix b/hosts/fra1-a/configuration.nix index 424873a..777478a 100644 --- a/hosts/fra1-a/configuration.nix +++ b/hosts/fra1-a/configuration.nix @@ -77,6 +77,7 @@ publicKeys = map (h: myData.hosts.${h}.publicKey) [ "vno1-oh2.servers.jakst" "fwminex.motiejus.jakst" + "mtworx.motiejus.jakst" ]; }; diff --git a/hosts/mtworx/configuration.nix b/hosts/mtworx/configuration.nix index 0a1a59f..8077792 100644 --- a/hosts/mtworx/configuration.nix +++ b/hosts/mtworx/configuration.nix @@ -78,6 +78,15 @@ in { toUser = config.mj.username; }; + remote-builder.client = let + host = myData.hosts."fra1-a.servers.jakst"; + in { + enable = true; + inherit (host) system supportedFeatures; + hostName = host.jakstIP; + sshKey = "/etc/ssh/ssh_host_ed25519_key"; + }; + node_exporter = { enable = true; extraSubnets = [myData.subnets.vno1.cidr];