From 0530b9f515ae92745887a6ca90679e7bd26bbc5b Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 8 Oct 2023 15:51:42 +0530 Subject: [PATCH] refactor wireguard configs --- hosts/rico2/wireguard.nix | 4 ++-- hosts/skipper/wireguard.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hosts/rico2/wireguard.nix b/hosts/rico2/wireguard.nix index d814da6..cebc71f 100644 --- a/hosts/rico2/wireguard.nix +++ b/hosts/rico2/wireguard.nix @@ -3,7 +3,7 @@ secrets, ... }: let - inherit (secrets.wireguard_config) peers Proxy Skipper; + inherit (secrets.wireguard_config) peers; in { networking.wireguard = { enable = true; @@ -12,7 +12,7 @@ in { inherit (peers."${config.networking.hostName}") ips; privateKeyFile = "/etc/wireguard/private.key"; generatePrivateKeyFile = true; - peers = [ + peers = with peers; [ Proxy Skipper ]; diff --git a/hosts/skipper/wireguard.nix b/hosts/skipper/wireguard.nix index f48f62e..5f4c76a 100644 --- a/hosts/skipper/wireguard.nix +++ b/hosts/skipper/wireguard.nix @@ -3,7 +3,7 @@ secrets, ... }: let - inherit (secrets.wireguard_config) peers Proxy Rico2; + inherit (secrets.wireguard_config) peers; in { networking.wireguard = { enable = true; @@ -12,7 +12,7 @@ in { inherit (peers."${config.networking.hostName}") ips; privateKeyFile = "/etc/wireguard/private.key"; generatePrivateKeyFile = true; - peers = [ + peers = with peers; [ Proxy Rico2 ];