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;
|
enable = true;
|
||||||
interfaces = {
|
interfaces = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
inherit (peers."${config.networking.hostName}") ips;
|
ips = peers."${config.networking.hostName}".allowedIPs;
|
||||||
privateKeyFile = "/etc/wireguard/private.key";
|
privateKeyFile = "/etc/wireguard/private.key";
|
||||||
generatePrivateKeyFile = true;
|
generatePrivateKeyFile = true;
|
||||||
peers = with peers; [
|
peers = with peers; [
|
||||||
|
|
|
@ -9,7 +9,7 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
interfaces = {
|
interfaces = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
inherit (peers."${config.networking.hostName}") ips;
|
ips = peers."${config.networking.hostName}".allowedIPs;
|
||||||
privateKeyFile = "/etc/wireguard/private.key";
|
privateKeyFile = "/etc/wireguard/private.key";
|
||||||
generatePrivateKeyFile = true;
|
generatePrivateKeyFile = true;
|
||||||
peers = with peers; [
|
peers = with peers; [
|
||||||
|
|
Loading…
Reference in a new issue