From 1d3de008c4d1fd5e3f67748eb143a2484968bac9 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Tue, 10 Oct 2023 19:14:01 +0530 Subject: [PATCH] rename field --- hosts/rico2/wireguard.nix | 2 +- hosts/skipper/wireguard.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/rico2/wireguard.nix b/hosts/rico2/wireguard.nix index f417e87..ae155fd 100644 --- a/hosts/rico2/wireguard.nix +++ b/hosts/rico2/wireguard.nix @@ -9,7 +9,7 @@ in { enable = true; interfaces = { wg0 = { - ips = peers."${config.networking.hostName}".allowedIPs; + inherit (peers."${config.networking.hostName}") ips; privateKeyFile = "/etc/wireguard/private.key"; generatePrivateKeyFile = true; listenPort = 51820; diff --git a/hosts/skipper/wireguard.nix b/hosts/skipper/wireguard.nix index 0e13f4d..6926a3f 100644 --- a/hosts/skipper/wireguard.nix +++ b/hosts/skipper/wireguard.nix @@ -9,7 +9,7 @@ in { enable = true; interfaces = { wg0 = { - ips = peers."${config.networking.hostName}".allowedIPs; + inherit (peers."${config.networking.hostName}") ips; privateKeyFile = "/etc/wireguard/private.key"; generatePrivateKeyFile = true; listenPort = 51820;