dns module

This commit is contained in:
Vivian 2022-09-27 14:05:24 +02:00
parent e3771d84c4
commit 8e0a0ffe71
9 changed files with 115 additions and 10 deletions

View file

@ -73,6 +73,7 @@ let vs = config.vault-secrets.secrets; in
publicKey = "KgqLhmUMX6kyTjRoa/GOCrZOvXNE5HWYuOr/T3v8/VI=";
allowedIPs = [ "10.100.0.5/32" "192.168.0.0/23" "10.10.10.0/24" ];
endpoint = "80.60.83.220:51820";
persistentKeepalive = 25;
}
];
};

View file

@ -1,7 +1,12 @@
{ ... }@a:
{ ... }:
{
services.v.dns = {
enable = true;
openFirewall = false;
mode = "laptop";
};
networking = {
networkmanager.enable = false;
useDHCP = true;
wireless = {
enable = true;
environmentFile = "/var/lib/secrets/wireless.env";
@ -29,10 +34,7 @@
# TODO: Set up DNS on my laptop to prevent slow networking when servers are down
nameservers = [
"10.42.42.15"
"10.42.42.16"
"192.168.0.1"
"1.1.1.1"
"127.0.0.1"
];
firewall.allowedUDPPorts = [ 51820 ];
@ -48,7 +50,7 @@
# Delft
publicKey = "kDIO3BJSYlDwRXc2zt9tR1LqKJzIPrulaRmdiYkg+m0=";
allowedIPs = [ "10.100.0.1" "10.42.42.0/23" ];
endpoint = "0x76.dev:51820";
endpoint = "195.85.167.34:51820";
persistentKeepalive = 25;
}
{
@ -60,7 +62,7 @@
"192.168.1.0/24"
"10.10.10.0/24"
];
endpoint = "xirion.net:51820";
endpoint = "80.60.83.220:51820";
persistentKeepalive = 25;
}
];