2024-04-03 19:03:14 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
flake,
|
2024-05-08 20:57:07 +00:00
|
|
|
...
|
|
|
|
}:
|
2024-04-03 19:03:14 +00:00
|
|
|
{
|
|
|
|
networking.firewall.allowedUDPPorts = [ 51820 ];
|
|
|
|
|
|
|
|
age.secrets.wg-private-key.file = "${flake.self}/secrets/nachtigall-wg-private-key.age";
|
|
|
|
|
|
|
|
networking.wireguard.interfaces = {
|
|
|
|
wg-ssh = {
|
|
|
|
listenPort = 51820;
|
|
|
|
mtu = 1300;
|
|
|
|
ips = [
|
|
|
|
"10.7.6.1/32"
|
|
|
|
"fd00:fae:fae:fae:fae:1::/96"
|
|
|
|
];
|
|
|
|
privateKeyFile = config.age.secrets.wg-private-key.path;
|
|
|
|
peers = flake.self.logins.admins.wireguardDevices ++ [
|
2024-05-08 20:57:07 +00:00
|
|
|
{
|
|
|
|
# flora-6.pub.solar
|
2024-04-12 20:31:28 +00:00
|
|
|
endpoint = "80.71.153.210:51820";
|
2024-04-03 19:03:14 +00:00
|
|
|
publicKey = "jtSR5G2P/nm9s8WrVc26Xc/SQLupRxyXE+5eIeqlsTU=";
|
2024-05-08 20:57:07 +00:00
|
|
|
allowedIPs = [
|
|
|
|
"10.7.6.2/32"
|
|
|
|
"fd00:fae:fae:fae:fae:2::/96"
|
|
|
|
];
|
2024-04-03 19:03:14 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-04-05 13:35:47 +00:00
|
|
|
|
2024-05-08 20:57:07 +00:00
|
|
|
services.openssh.listenAddresses = [
|
2024-04-05 13:35:47 +00:00
|
|
|
{
|
|
|
|
addr = "10.7.6.1";
|
|
|
|
port = 22;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
addr = "[fd00:fae:fae:fae:fae:1::]";
|
|
|
|
port = 22;
|
|
|
|
}
|
|
|
|
];
|
2024-04-03 19:03:14 +00:00
|
|
|
}
|