saving work

This commit is contained in:
jaina heartles 2023-12-25 20:45:33 -08:00
parent 92227ceda4
commit f57f91f858

21
vpn.nix Normal file
View file

@ -0,0 +1,21 @@
{ 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 = "";
}
];
};
}