refactor wireguard configs

This commit is contained in:
Adithya 2023-10-08 15:59:18 +05:30
parent 4a0bae5952
commit 7e66a92e84
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 2 additions and 2 deletions

View file

@ -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; [

View file

@ -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; [