Made wireguard work: 10.0.0.1 accessible

This commit is contained in:
2026-01-12 02:17:20 +02:00
parent dd95e572ec
commit db5fce9c57
3 changed files with 17 additions and 8 deletions

View File

@@ -3,7 +3,18 @@
pkgs,
...
}: {
environment.systemPackages = with pkgs; [
wireguard-tools
];
networking.wireguard.interfaces = {
wg0 = {
ips = [ "10.0.0.3/32" ];
listenPort = 5553;
privateKeyFile = "/etc/wireguard/wg0.key";
peers = [
{ # cloudhaus
publicKey = "SOqdU6uku2t0l8lGBDEnwDNHrb5Nk/64qA6++mGa+CI=";
allowedIPs = [ "10.0.0.1/32"];
endpoint = "46.62.255.194:51820";
persistentKeepalive = 25;
}];
};
};
}