From 7e66a92e84abde139484b735cc3ff13e0157561e Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 8 Oct 2023 15:59:18 +0530 Subject: [PATCH] refactor wireguard configs --- 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 cebc71f..b8e88db 100644 --- a/hosts/rico2/wireguard.nix +++ b/hosts/rico2/wireguard.nix @@ -9,7 +9,7 @@ in { enable = true; interfaces = { wg0 = { - inherit (peers."${config.networking.hostName}") ips; + ips = peers."${config.networking.hostName}".allowedIPs; privateKeyFile = "/etc/wireguard/private.key"; generatePrivateKeyFile = true; peers = with peers; [ diff --git a/hosts/skipper/wireguard.nix b/hosts/skipper/wireguard.nix index 5f4c76a..2183dac 100644 --- a/hosts/skipper/wireguard.nix +++ b/hosts/skipper/wireguard.nix @@ -9,7 +9,7 @@ in { enable = true; interfaces = { wg0 = { - inherit (peers."${config.networking.hostName}") ips; + ips = peers."${config.networking.hostName}".allowedIPs; privateKeyFile = "/etc/wireguard/private.key"; generatePrivateKeyFile = true; peers = with peers; [