added vpn
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ ... }: {
|
||||
{pkgs, ...}: {
|
||||
networking.hostName = "nixos";
|
||||
# Pick only one of the below networking options.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{...}: {
|
||||
networking.wireguard.interfaces = {
|
||||
biscuit-default = {
|
||||
ips = ["10.2.0.2/32"];
|
||||
listenPort = 51820;
|
||||
privateKeyFile = "/home/biscuit/Wireguard/secret";
|
||||
dns = ["10.2.0.1"];
|
||||
peers = [
|
||||
{
|
||||
publicKey = "KkUoHrIzkuQ4msZulqCFyRC1Gqcx8oMgbDFRn8wW1X8=";
|
||||
allowedIPs = ["0.0.0.0/0"];
|
||||
endpoint = "95.173.221.65:51820";
|
||||
persistentKeepAlive = 25;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user