nixfleet/modules/wireguard-client/default.nix
Andrea Ciceri a394b9cefd
All checks were successful
/ test (push) Successful in 32s
Reformat everything
2024-09-20 11:37:17 +02:00

21 lines
391 B
Nix

{
config,
vpn,
...
}:
{
imports = [ ../wireguard-common ];
networking.wireguard.interfaces.wg0 = {
mtu = 1200;
ips = [ "${vpn.${config.networking.hostName}.ip}/32" ];
peers = [
{
publicKey = vpn.sisko.publicKey;
allowedIPs = [ "10.100.0.0/24" ];
endpoint = "vpn.aciceri.dev:51820";
persistentKeepalive = 25;
}
];
};
}