fixed typos (this time fr)

This commit is contained in:
Lyn 2024-11-13 20:30:39 +01:00
parent 6faa9df23b
commit 9080c75f6d
2 changed files with 23 additions and 19 deletions

View file

@ -126,7 +126,9 @@ in {
};
};
};
${prefix}.network = {
inherit hosts wg_subnets;
config = {
${prefix}.network = {
inherit hosts wg_subnets;
};
};
}

View file

@ -35,24 +35,26 @@ in {
description = "Whether to use IPv6. Defaults to true";
default = true;
};
networking.wireguard.interfaces.wg0 = {
ips =
if cfg.useIPv6
then ["${meshnetwork.wg_subnets.IPv6}"]
else ["${meshnetwork.wg_subnets.IPv4}"];
listenPort = cfg.wireguardPort;
privateKeyFile = "/var/lib/wireguard-keys/private";
mtu = 1420;
};
services.wgautomesh = {
enable = true;
services.wgautomesh.settings = {
interface = "wg0";
peers =
config = {
networking.wireguard.interfaces.wg0 = {
ips =
if cfg.useIPv6
then buildPeerlist "v6" meshnetwork.hosts
else buildPeerlist "v4" meshnetwork.hosts;
upnp_forward_external_port = wireguardPort;
then ["${meshnetwork.wg_subnets.IPv6}"]
else ["${meshnetwork.wg_subnets.IPv4}"];
listenPort = cfg.wireguardPort;
privateKeyFile = "/var/lib/wireguard-keys/private";
mtu = 1420;
};
services.wgautomesh = {
enable = true;
services.wgautomesh.settings = {
interface = "wg0";
peers =
if cfg.useIPv6
then buildPeerlist "v6" meshnetwork.hosts
else buildPeerlist "v4" meshnetwork.hosts;
upnp_forward_external_port = wireguardPort;
};
};
};
}