aboutsummaryrefslogtreecommitdiff
path: root/machines/fra01
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/fra01
parentmerge diverged changes (diff)
add and update servers
Diffstat (limited to 'machines/fra01')
-rw-r--r--machines/fra01/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/machines/fra01/default.nix b/machines/fra01/default.nix
new file mode 100644
index 0000000..059e082
--- /dev/null
+++ b/machines/fra01/default.nix
@@ -0,0 +1,37 @@
+{ config, lib, pkgs, ... }:
+
+let endpoint = "95.179.243.82";
+in
+{
+ networking = {
+ domain = "ns.vapor.systems";
+ hostName = "fra01";
+ };
+
+ pubKey =
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB9rBu7L0ktMFpYOqvKyjDoO8a5Y0CfqnCJCGEdE6cOV";
+
+ kubernetes = {
+ role = "agent";
+ externalIP = {
+ v4 = endpoint;
+ v6 = "2001:19f0:6c01:28e5:5400:3ff:fed7:7a2a";
+ };
+ };
+
+ wireguard = {
+ enable = true;
+ inherit endpoint;
+ v4 = { address = "10.10.0.3"; };
+ v6 = { address = "3"; };
+ publicKey = "jw3hiRczS0kQoOYlgofFp23/YZq8mzDaPRto+qVz7iE=";
+ allowedIPs = [ "10.102.5.0/24" "fd15:3d8c:d429:102:500::/72" ];
+ };
+
+ _module.args.nixinate = {
+ host = endpoint;
+ buildOn = "local";
+ substituteOnTarget = true;
+ hermetic = true;
+ };
+}