diff options
author | Alex Auvolat <alex@adnab.me> | 2022-11-22 12:09:28 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-11-22 12:09:28 +0100 |
commit | 6659deb5445d3b29b35833f5cec2654800eee993 (patch) | |
tree | caa82d1a7907d339afe8c7093174732cb7256c52 /nix | |
parent | 945dd4fa9ae898562648bc33b4798adaaca08be4 (diff) | |
download | nixcfg-6659deb5445d3b29b35833f5cec2654800eee993.tar.gz nixcfg-6659deb5445d3b29b35833f5cec2654800eee993.zip |
Add Baptiste ; fix wireguard
Diffstat (limited to 'nix')
-rw-r--r-- | nix/deuxfleurs.nix | 4 |
1 files changed, 2 insertions, 2 deletions
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, ... }: { |