2024-04-03 19:03:14 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
flake,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
networking.firewall.allowedUDPPorts = [ 51820 ];
|
|
|
|
|
2024-04-05 11:26:38 +00:00
|
|
|
age.secrets.wg-private-key.file = "${flake.self}/secrets/flora6-wg-private-key.age";
|
2024-04-03 19:03:14 +00:00
|
|
|
|
|
|
|
networking.wireguard.interfaces = {
|
|
|
|
wg-ssh = {
|
|
|
|
listenPort = 51820;
|
|
|
|
mtu = 1300;
|
|
|
|
ips = [
|
|
|
|
"10.7.6.2/32"
|
|
|
|
"fd00:fae:fae:fae:fae:2::/96"
|
|
|
|
];
|
|
|
|
privateKeyFile = config.age.secrets.wg-private-key.path;
|
|
|
|
peers = flake.self.logins.admins.wireguardDevices ++ [
|
2024-04-12 20:36:17 +00:00
|
|
|
{
|
|
|
|
# nachtigall.pub.solar
|
2024-04-12 20:31:28 +00:00
|
|
|
endpoint = "138.201.80.102:51820";
|
2024-04-03 19:03:14 +00:00
|
|
|
publicKey = "qzNywKY9RvqTnDO8eLik75/SHveaSk9OObilDzv+xkk=";
|
|
|
|
allowedIPs = [
|
|
|
|
"10.7.6.1/32"
|
|
|
|
"fd00:fae:fae:fae:fae:1::/96"
|
|
|
|
];
|
|
|
|
}
|
2024-06-06 10:52:55 +00:00
|
|
|
{
|
|
|
|
# metronom.pub.solar
|
|
|
|
endpoint = "49.13.236.167:51820";
|
|
|
|
publicKey = "zOSYGO7MfnOOUnzaTcWiKRQM0qqxR3JQrwx/gtEtHmo=";
|
|
|
|
allowedIPs = [
|
|
|
|
"10.7.6.3/32"
|
|
|
|
"fd00:fae:fae:fae:fae:3::/96"
|
|
|
|
];
|
|
|
|
persistentKeepalive = 15;
|
|
|
|
}
|
2024-06-06 10:53:49 +00:00
|
|
|
{
|
|
|
|
# tankstelle.pub.solar
|
|
|
|
endpoint = "80.244.242.5:51820";
|
|
|
|
publicKey = "iRTlY1lB7nPXf2eXzX8ZZDkfMmXyGjff5/joccbP8Cg=";
|
|
|
|
allowedIPs = [
|
|
|
|
"10.7.6.4/32"
|
|
|
|
"fd00:fae:fae:fae:fae:4::/96"
|
|
|
|
];
|
|
|
|
}
|
2024-08-24 22:13:53 +00:00
|
|
|
{
|
|
|
|
# trinkgenossin.pub.solar
|
|
|
|
endpoint = "85.215.152.22:51820";
|
|
|
|
publicKey = "QWgHovHxtqiQhnHLouSWiT6GIoQDmuvnThYL5c/rvU4=";
|
|
|
|
allowedIPs = [
|
|
|
|
"10.7.6.5/32"
|
|
|
|
"fd00:fae:fae:fae:fae:5::/96"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# delite.pub.solar
|
|
|
|
endpoint = "5.255.119.132:51820";
|
|
|
|
publicKey = "ZT2qGWgMPwHRUOZmTQHWCRX4m14YwOsiszjsA5bpc2k=";
|
|
|
|
allowedIPs = [
|
|
|
|
"10.7.6.6/32"
|
|
|
|
"fd00:fae:fae:fae:fae:6::/96"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# blue-shell.pub.solar
|
|
|
|
endpoint = "194.13.83.205:51820";
|
|
|
|
publicKey = "bcrIpWrKc1M+Hq4ds3aN1lTaKE26f2rvXhd+93QrzR8=";
|
|
|
|
allowedIPs = [
|
|
|
|
"10.7.6.7/32"
|
|
|
|
"fd00:fae:fae:fae:fae:7::/96"
|
|
|
|
];
|
|
|
|
}
|
2024-04-03 19:03:14 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-04-05 13:35:47 +00:00
|
|
|
|
|
|
|
services.openssh.listenAddresses = [
|
|
|
|
{
|
|
|
|
addr = "10.7.6.2";
|
|
|
|
port = 22;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
addr = "[fd00:fae:fae:fae:fae:2::]";
|
|
|
|
port = 22;
|
|
|
|
}
|
|
|
|
];
|
2024-04-03 19:03:14 +00:00
|
|
|
}
|