aboutsummaryrefslogtreecommitdiff
path: root/machines/phaenn
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2023-10-02 14:05:36 +0200
committerMax Audron <audron@cocaine.farm>2023-10-02 14:05:36 +0200
commitd53ddb8da1d41fbfa3935dcc13bf6d234f46d0c2 (patch)
tree19c4a85464c2b2d38a1d8e65f5a36473cba7b02d /machines/phaenn
parentmerge diverged changes (diff)
add and update servers
Diffstat (limited to 'machines/phaenn')
-rw-r--r--machines/phaenn/default.nix27
1 files changed, 26 insertions, 1 deletions
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;
+ };
}