Clean up jupiter wireguard config

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-06-16 11:56:38 +01:00
parent f819c8c5e3
commit f68fdf9211
2 changed files with 3 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ in
wireguard.interfaces.wg0 = { wireguard.interfaces.wg0 = {
ips = [ "10.0.0.1/24" ]; ips = [ "10.0.0.1/24" ];
listenPort = wireguardPort; listenPort = wireguardPort;
privateKeyFile = config.sops.secrets.wireguard.path; privateKeyFile = config.sops.secrets.wireguard.path;
peers = [ peers = [

View File

@@ -32,12 +32,11 @@ in
"10.0.0.2/24" "10.0.0.2/24"
"${jupiterPublicIPv4}/32" "${jupiterPublicIPv4}/32"
]; ];
listenPort = wireguardPort;
privateKeyFile = config.sops.secrets.wireguard.path; privateKeyFile = config.sops.secrets.wireguard.path;
table = "wireguard"; table = "wireguard";
postSetup = [ "${ip} rule add from ${jupiterPublicIPv4} table ${table}" ]; postSetup = [ "${ip} rule add from ${jupiterPublicIPv4} table ${table}" ];
postShutdown = [ "${ip} rule del from ${jupiterPublicIPv4} table ${table}" ]; postShutdown = [ "${ip} rule del from ${jupiterPublicIPv4} table ${table}" ];
peers = [ peers = [