nixos-flake/vpn.nix

22 lines
399 B
Nix
Raw Normal View History

2023-12-26 04:45:33 +00:00
{ pkgs, ... }:
{
networking.firewall.allowedUDPPorts = [ 51820 ];
networking.wireguard.interfaces.wg0 = {
ips = [ "10.100.0.2/24" ];
listenPort = 51820;
privateKeyFile = "/home/jaina/wg-keys/private";
peers = [
{
publicKey = "8g2nDmUFmTE4y+0zvpB6tD5ktoULHpWQw+bud5yA6GA="
allowedIPs = [ "192.168.1.1/16" ];
endpoint = "";
}
];
};
}