aboutsummaryrefslogtreecommitdiff
path: root/nix/deuxfleurs.nix
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-11-22 12:09:28 +0100
committerAlex Auvolat <alex@adnab.me>2022-11-22 12:09:28 +0100
commit6659deb5445d3b29b35833f5cec2654800eee993 (patch)
treecaa82d1a7907d339afe8c7093174732cb7256c52 /nix/deuxfleurs.nix
parent945dd4fa9ae898562648bc33b4798adaaca08be4 (diff)
downloadnixcfg-6659deb5445d3b29b35833f5cec2654800eee993.tar.gz
nixcfg-6659deb5445d3b29b35833f5cec2654800eee993.zip
Add Baptiste ; fix wireguard
Diffstat (limited to 'nix/deuxfleurs.nix')
-rw-r--r--nix/deuxfleurs.nix4
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, ... }: {