refactor wireguard configs
This commit is contained in:
parent
4a0bae5952
commit
7e66a92e84
2 changed files with 2 additions and 2 deletions
|
@ -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; [
|
||||
|
|
|
@ -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; [
|
||||
|
|
Loading…
Reference in a new issue