diff --git a/hosts/x86_64-linux/beleth/wireguard.nix b/hosts/x86_64-linux/beleth/wireguard.nix index beac85b..f73f4d0 100644 --- a/hosts/x86_64-linux/beleth/wireguard.nix +++ b/hosts/x86_64-linux/beleth/wireguard.nix @@ -12,19 +12,21 @@ }; networking.wireguard.interfaces = { - ips = ["2a01:4f8:10a:1aab::2/64"]; + wg0 = { + ips = ["2a01:4f8:10a:1aab::2/64"]; - listenPort = 51820; + listenPort = 51820; - privateKeyFile = "/home/xqtc/wireguard-keys/private"; + privateKeyFile = "/home/xqtc/wireguard-keys/private"; - peers = [ - { - #anner - publicKey = "5ar4lh3Ra4TRmUJeeBtPgDvZnAkGssJDUN53y9oa3So="; - allowedIPs = ["2a0f:be01::/48"]; - endpoint = "[2a0f:be01::1]:51822"; - } - ]; + peers = [ + { + #anner + publicKey = "5ar4lh3Ra4TRmUJeeBtPgDvZnAkGssJDUN53y9oa3So="; + allowedIPs = ["2a0f:be01::/48"]; + endpoint = "[2a0f:be01::1]:51822"; + } + ]; + }; }; }