From d53ddb8da1d41fbfa3935dcc13bf6d234f46d0c2 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Mon, 2 Oct 2023 14:05:36 +0200 Subject: add and update servers --- machines/phaenn/default.nix | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'machines/phaenn/default.nix') diff --git a/machines/phaenn/default.nix b/machines/phaenn/default.nix index 4f25a5c..5e95592 100644 --- a/machines/phaenn/default.nix +++ b/machines/phaenn/default.nix @@ -1,5 +1,7 @@ { config, lib, pkgs, ... }: +let endpoint = "142.132.159.202"; +in { imports = [ ./fs.nix @@ -19,9 +21,10 @@ networking = { domain = "vapor.systems"; + hostName = "phaenn"; hostId = "f9274217"; interfaces.eth0.ipv4.addresses = [{ - address = "142.132.159.202"; + address = endpoint; prefixLength = 26; }]; interfaces.eth0.ipv6.addresses = [{ @@ -34,4 +37,26 @@ interface = "eth0"; }; }; + + pubKey = + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFdujV+knnOzP+oW6C42yWRJVhkSR+lcdx+FUsCP3Q1v root@phaenn"; + + kubernetes.role = "agent"; + + wireguard = { + enable = true; + roaming = true; + inherit endpoint; + v4 = { address = "10.10.0.2"; }; + v6 = { address = "2"; }; + publicKey = "GmUvA3L8M2+N59my6MeoGwDD8puLOO5/Rbe29WtduBI="; + allowedIPs = [ "10.102.1.0/24" "fd15:3d8c:d429:102:100::/72" ]; + }; + + _module.args.nixinate = { + host = endpoint; + buildOn = "remote"; + substituteOnTarget = true; + hermetic = true; + }; } -- cgit v1.2.3