dotfiles/modules/services/wireguard.nix

15 lines
368 B
Nix
Raw Normal View History

2022-05-29 16:00:19 +00:00
{ ... }: {
networking.wireguard.interfaces = {
wg0 = {
ips = [ "10.0.0.1/32" "fc00:bbbb:bbbb:bb01::3:7fea/128" ];
privateKeyFile = "/private/wireguard-pk";
peers = [{
publicKey = "ABCDEFABCDEF";
allowedIPs = [ "0.0.0.0/0" "::0/0" ];
endpoint = "10.0.0.1:51820";
persistentKeepalive = 25;
}];
};
};
}