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 ];