nixfiles/data/wireguard/chaosInternalWireGuard.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

2023-09-18 03:56:58 +01:00
let
pubkeys = builtins.fromJSON (builtins.readFile ./chaosInternalWireGuardPubKeys.json);
listenPort = 51820;
2023-09-18 03:56:58 +01:00
in rec {
# 10.0.0.0/24 - machines
# 10.0.1.0/24 - containers for hetzner-arm
2023-09-18 03:56:58 +01:00
hosts = {
"hetzner-arm" = {
ip = "10.0.0.1";
allowedIPs = [
"10.0.0.1/32" # Allow itself
"10.0.1.1/24" # Containers
];
public = pubkeys."hetzner-arm";
inherit listenPort;
endpoint = "hetzner-arm.servers.genderfucked.monster:${toString listenPort}";
2023-09-18 03:56:58 +01:00
};
"vault" = {
ip = "10.0.0.2";
2023-09-18 03:56:58 +01:00
public = pubkeys."vault";
inherit listenPort;
endpoint = "vault.servers.genderfucked.monster:${toString listenPort}";
};
"lappy-t495" = {
ip = "10.0.0.3";
public = pubkeys."lappy-t495";
};
2023-09-18 03:56:58 +01:00
"raspberry" = {
ip = "10.0.0.4";
2023-09-18 03:56:58 +01:00
public = pubkeys."raspberry";
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
};
};
}