aboutsummaryrefslogtreecommitdiff
path: root/machines/nyc01
diff options
context:
space:
mode:
Diffstat (limited to 'machines/nyc01')
-rw-r--r--machines/nyc01/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/machines/nyc01/default.nix b/machines/nyc01/default.nix
new file mode 100644
index 0000000..b745897
--- /dev/null
+++ b/machines/nyc01/default.nix
@@ -0,0 +1,37 @@
+{ config, lib, pkgs, ... }:
+
+let endpoint = "207.246.124.62";
+in
+{
+ networking = {
+ domain = "ns.vapor.systems";
+ hostName = "nyc01";
+ };
+
+ pubKey =
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC00bSIp5oydOY/SFxPULYFtij5nsZCugdiR3q7PxNqC";
+
+ kubernetes = {
+ role = "agent";
+ externalIP = {
+ v4 = endpoint;
+ v6 = "2001:19f0:5:13df:5400:3ff:fed5:f26c";
+ };
+ };
+
+ wireguard = {
+ enable = true;
+ inherit endpoint;
+ v4 = { address = "10.10.0.4"; };
+ v6 = { address = "4"; };
+ publicKey = "aVIWBqnUhYEwXMuHiUmsU4nKmFhsIj9Nb6rx4TGFvRY=";
+ allowedIPs = [ "10.102.3.0/24" "fd15:3d8c:d429:102:300::/72" ];
+ };
+
+ _module.args.nixinate = {
+ host = endpoint;
+ buildOn = "local";
+ substituteOnTarget = true;
+ hermetic = true;
+ };
+}