2023-09-18 03:56:58 +01:00
|
|
|
let
|
|
|
|
pubkeys = builtins.fromJSON (builtins.readFile ./chaosInternalWireGuardPubKeys.json);
|
2023-10-02 03:08:24 +01:00
|
|
|
listenPort = 51820;
|
2023-09-18 03:56:58 +01:00
|
|
|
in rec {
|
2023-10-02 03:08:24 +01:00
|
|
|
# 10.0.0.0/24 - machines
|
|
|
|
# 10.0.1.0/24 - containers for hetzner-arm
|
|
|
|
|
2023-09-18 03:56:58 +01:00
|
|
|
hosts = {
|
2023-09-21 05:06:27 +01:00
|
|
|
"hetzner-arm" = {
|
2023-10-02 03:08:24 +01:00
|
|
|
ip = "10.0.0.1";
|
|
|
|
allowedIPs = [
|
|
|
|
"10.0.0.1/32" # Allow itself
|
|
|
|
"10.0.1.1/24" # Containers
|
|
|
|
];
|
2023-09-21 05:06:27 +01:00
|
|
|
public = pubkeys."hetzner-arm";
|
2023-10-02 03:08:24 +01:00
|
|
|
inherit listenPort;
|
|
|
|
endpoint = "hetzner-arm.servers.genderfucked.monster:${toString listenPort}";
|
2023-09-18 03:56:58 +01:00
|
|
|
};
|
|
|
|
"vault" = {
|
2023-10-02 03:08:24 +01:00
|
|
|
ip = "10.0.0.2";
|
2023-09-18 03:56:58 +01:00
|
|
|
public = pubkeys."vault";
|
2023-10-02 03:08:24 +01:00
|
|
|
inherit listenPort;
|
|
|
|
endpoint = "vault.servers.genderfucked.monster:${toString listenPort}";
|
2023-09-18 15:40:33 +01:00
|
|
|
};
|
|
|
|
"lappy-t495" = {
|
2023-10-02 03:08:24 +01:00
|
|
|
ip = "10.0.0.3";
|
2023-09-18 15:40:33 +01:00
|
|
|
public = pubkeys."lappy-t495";
|
|
|
|
};
|
2023-09-18 03:56:58 +01:00
|
|
|
"raspberry" = {
|
2023-10-02 03:08:24 +01:00
|
|
|
ip = "10.0.0.4";
|
2023-09-18 03:56:58 +01:00
|
|
|
public = pubkeys."raspberry";
|
2023-10-02 03:08:24 +01:00
|
|
|
inherit listenPort;
|
|
|
|
endpoint = "raspberry.servers.genderfucked.monster:${toString listenPort}";
|
|
|
|
};
|
|
|
|
"iphone15" = {
|
|
|
|
ip = "10.0.0.5";
|
|
|
|
public = pubkeys."iphone15";
|
|
|
|
};
|
|
|
|
"iphone8" = {
|
|
|
|
ip = "10.0.0.6";
|
|
|
|
public = pubkeys."iphone8";
|
2023-09-18 03:56:58 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|