21 lines
391 B
Nix
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;
|
|
}
|
|
];
|
|
};
|
|
}
|