dotfiles/modules/services/wireguard.nix

19 lines
503 B
Nix
Raw Normal View History

2022-05-29 16:00:19 +00:00
{ ... }: {
2022-06-04 14:29:36 +00:00
networking.wireguard = {
enable = true;
interfaces = {
wg0 = {
ips = [ "10.66.127.235/32" "fc00:bbbb:bbbb:bb01::3:7fea/128" ];
generatePrivateKeyFile = true;
privateKeyFile = "/private/wireguard/wg0";
peers = [{
publicKey = "cVDIYPzNChIeANp+0jE12kWM5Ga1MbmNErT1Pmaf12A=";
allowedIPs = [ "0.0.0.0/0" "::0/0" ];
endpoint = "89.46.62.197:51820";
persistentKeepalive = 25;
}];
};
2022-05-29 16:00:19 +00:00
};
};
}