diff options
Diffstat (limited to 'os/srv/wireguard.nix')
| -rw-r--r-- | os/srv/wireguard.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/srv/wireguard.nix b/os/srv/wireguard.nix index 363ac9f..c758174 100644 --- a/os/srv/wireguard.nix +++ b/os/srv/wireguard.nix @@ -107,13 +107,13 @@ in }; networking.wireguard.interfaces.wg0 = { - ips = [ "10.255.1.1/24" ]; + ips = [ "10.3.0.1/24" ]; listenPort = 51280; privateKeyFile = config.sops.secrets."wg_private_key/${hostname}".path; peers = lib.imap1 (i: peer: { publicKey = peer.publicKey; - allowedIPs = [ "10.255.0.${toString i}/32" ]; + allowedIPs = [ "10.3.0.${toString (i + 1)}/32" ]; persistentKeepalive = 25; }) cfg.server.peers; }; @@ -128,12 +128,12 @@ in ]; networking.nameservers = [ - "10.255.1.1" + config.os.core.network.ips.vm2-gateway "9.9.9.9" ]; networking.wireguard.interfaces.wg0 = { - ips = [ "10.255.0.${toString cfg.client.index}/24" ]; + ips = [ "10.3.0.${toString cfg.client.index + 1}/24" ]; privateKeyFile = config.sops.secrets."wg_private_key/${hostname}".path; peers = [ |
