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 = { config = {
inherit hosts wg_subnets; ${prefix}.network = {
inherit hosts wg_subnets;
};
}; };
} }

View file

@ -35,24 +35,26 @@ in {
description = "Whether to use IPv6. Defaults to true"; description = "Whether to use IPv6. Defaults to true";
default = true; default = true;
}; };
networking.wireguard.interfaces.wg0 = { config = {
ips = networking.wireguard.interfaces.wg0 = {
if cfg.useIPv6 ips =
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 if cfg.useIPv6
then buildPeerlist "v6" meshnetwork.hosts then ["${meshnetwork.wg_subnets.IPv6}"]
else buildPeerlist "v4" meshnetwork.hosts; else ["${meshnetwork.wg_subnets.IPv4}"];
upnp_forward_external_port = wireguardPort; 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;
};
}; };
}; };
} }