From 6659deb5445d3b29b35833f5cec2654800eee993 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 22 Nov 2022 12:09:28 +0100 Subject: Add Baptiste ; fix wireguard --- nix/deuxfleurs.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nix/deuxfleurs.nix') diff --git a/nix/deuxfleurs.nix b/nix/deuxfleurs.nix index e5925fd..7f62a42 100644 --- a/nix/deuxfleurs.nix +++ b/nix/deuxfleurs.nix @@ -210,8 +210,8 @@ in services.resolved.enable = false; # Configure Wireguard VPN between all nodes - networking.wireguard.interfaces.wg0 = { - ips = [ "${cfg.cluster_ip}/16" ]; + networking.wg-quick.interfaces.wg0 = { + address = [ "${cfg.cluster_ip}/16" ]; listenPort = cfg.wireguard_port; privateKeyFile = "/var/lib/deuxfleurs/wireguard-keys/private"; peers = map ({ publicKey, endpoint, IP, site_name, lan_endpoint, ... }: { -- cgit v1.2.3