saving work
This commit is contained in:
parent
92227ceda4
commit
f57f91f858
1 changed files with 21 additions and 0 deletions
21
vpn.nix
Normal file
21
vpn.nix
Normal 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 = "";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue