Add dedicated jupiter ip

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-03-03 17:30:23 +00:00
parent a271e892c3
commit 4354a2149b
7 changed files with 62 additions and 99 deletions

View File

@@ -2,9 +2,13 @@
let
jupiterConfig = inputs.self.nixosConfigurations.jupiter.config;
wireguardPort = 51820;
jupiterPublicIPv4 = "51.89.210.124";
in
{
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
boot.kernel.sysctl = {
"net.ipv4.ip_forward" = 1;
"net.ipv4.conf.all.proxy_arp" = 1;
};
sops.secrets."wireguard" = { };
@@ -22,7 +26,10 @@ in
peers = [
{
name = "jupiter";
allowedIPs = [ "10.0.0.2/32" ];
allowedIPs = [
"10.0.0.2/32"
"${jupiterPublicIPv4}/32"
];
publicKey = "Lvx7bpyqI8rUrxYVDolz7T+EPuRWDohJAAToq7kH7EU=";
}
];