nixfleet/modules/wireguard-common/default.nix
Andrea Ciceri a32c23d474
Some checks failed
/ test (push) Failing after 37m55s
Useless comment and args
2025-04-24 11:55:01 +02:00

25 lines
423 B
Nix

{
config,
...
}:
{
networking.firewall.interfaces.wg0 = {
allowedUDPPortRanges = [
{
from = 0;
to = 65535;
}
];
allowedTCPPortRanges = [
{
from = 0;
to = 65535;
}
];
};
networking.wireguard.interfaces.wg0 = {
privateKeyFile = config.age.secrets."${config.networking.hostName}-wireguard-private-key".path;
listenPort = 51820;
};
}