fix up wireguard config
This commit is contained in:
parent
89a5f8cdc6
commit
01e2da2383
1 changed files with 9 additions and 11 deletions
20
flake.nix
20
flake.nix
|
@ -639,17 +639,15 @@
|
|||
map
|
||||
(
|
||||
n: {
|
||||
wireguardPeerConfig = {
|
||||
PublicKey = cfg.hosts.${n}.public_key;
|
||||
Endpoint = "${cfg.hosts.${n}.endpoint.address}:${toString cfg.hosts.${n}.endpoint.port}";
|
||||
AllowedIPs = [
|
||||
cfg.service_subnet
|
||||
cfg.pod_subnet
|
||||
cfg.hosts.${n}.wireguard_subnet.address
|
||||
"${cfg.hosts.${n}.pod_subnet.address}/${toString cfg.hosts.${n}.pod_subnet.mask}"
|
||||
];
|
||||
PersistentKeepalive = 25;
|
||||
};
|
||||
PublicKey = cfg.hosts.${n}.public_key;
|
||||
Endpoint = "${cfg.hosts.${n}.endpoint.address}:${toString cfg.hosts.${n}.endpoint.port}";
|
||||
AllowedIPs = [
|
||||
cfg.service_subnet
|
||||
cfg.pod_subnet
|
||||
cfg.hosts.${n}.wireguard_subnet.address
|
||||
"${cfg.hosts.${n}.pod_subnet.address}/${toString cfg.hosts.${n}.pod_subnet.mask}"
|
||||
];
|
||||
PersistentKeepalive = 25;
|
||||
}
|
||||
)
|
||||
(
|
||||
|
|
Loading…
Add table
Reference in a new issue