added vpn wg

This commit is contained in:
biscuit
2025-05-20 11:35:53 -05:00
parent 6044c4e063
commit 5278908420
+5 -4
View File
@@ -1,8 +1,9 @@
{...}: {
networking.wireguard.interfaces = {
networking.wg-quick.interfaces = {
biscuit-default = {
ips = ["10.2.0.2/32"];
listenPort = 51820;
address = ["10.2.0.2/32"];
# listenPort = 51820;
# FIXME change privateKey to variable and add env (make sure it is inaccessible!)
privateKeyFile = "/home/biscuit/Wireguard/secret";
dns = ["10.2.0.1"];
peers = [
@@ -10,7 +11,7 @@
publicKey = "KkUoHrIzkuQ4msZulqCFyRC1Gqcx8oMgbDFRn8wW1X8=";
allowedIPs = ["0.0.0.0/0"];
endpoint = "95.173.221.65:51820";
persistentKeepAlive = 25;
# persistentKeepAlive = 25;
}
];
};