Updated formating
This commit is contained in:
@@ -6,23 +6,25 @@
|
||||
networking = {
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [80 443 22 25565 26615 8080 53 19132 ];
|
||||
allowedUDPPorts = [26615 8080 1900 51820 53 19132 ];
|
||||
allowedTCPPorts = [80 443 22 25565 26615 8080 53 19132];
|
||||
allowedUDPPorts = [26615 8080 1900 51820 53 19132];
|
||||
};
|
||||
nat.externalInterface = "wlp0s20f3";
|
||||
nat.internalInterfaces = [ "wg0" ];
|
||||
nat.internalInterfaces = ["wg0"];
|
||||
wireguard.interfaces = {
|
||||
wg0 = {
|
||||
ips = ["10.0.0.1/24"];
|
||||
listenPort = 51820;
|
||||
privateKeyFile = "/keys/wg-private";
|
||||
peers = [
|
||||
{ # laptop
|
||||
publicKey = "Ze2y3K+blI3aBc1AKTlvv90j+McBaitB+qSLazsuSFM=";
|
||||
peers = [
|
||||
{
|
||||
# laptop
|
||||
publicKey = "Ze2y3K+blI3aBc1AKTlvv90j+McBaitB+qSLazsuSFM=";
|
||||
allowedIPs = ["10.0.0.2/32"];
|
||||
}
|
||||
|
||||
{ # phone
|
||||
{
|
||||
# phone
|
||||
publicKey = "vcheBoHRxCrwzbMw0UI9ZsQfVDJizBWkeM+pF5/8+HE=";
|
||||
allowedIPs = ["10.0.0.3/32"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user