use updated listenPorts

This commit is contained in:
Adithya 2023-10-10 19:38:13 +05:30
parent 99f56aa89a
commit 83e6841a7f
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 2 additions and 4 deletions

View file

@ -9,10 +9,9 @@ in {
enable = true; enable = true;
interfaces = { interfaces = {
wg0 = { wg0 = {
inherit (peers."${config.networking.hostName}") ips; inherit (peers."${config.networking.hostName}") ips listenPort;
privateKeyFile = "/etc/wireguard/private.key"; privateKeyFile = "/etc/wireguard/private.key";
generatePrivateKeyFile = true; generatePrivateKeyFile = true;
listenPort = 51820;
peers = with peers; [ peers = with peers; [
Proxy.peer Proxy.peer
]; ];

View file

@ -9,10 +9,9 @@ in {
enable = true; enable = true;
interfaces = { interfaces = {
wg0 = { wg0 = {
inherit (peers."${config.networking.hostName}") ips; inherit (peers."${config.networking.hostName}") ips listenPort;
privateKeyFile = "/etc/wireguard/private.key"; privateKeyFile = "/etc/wireguard/private.key";
generatePrivateKeyFile = true; generatePrivateKeyFile = true;
listenPort = 51820;
peers = with peers; [ peers = with peers; [
Proxy.peer Proxy.peer
]; ];