reorganised hosts

This commit is contained in:
2021-06-04 02:06:13 +05:30
parent 02fa695a0f
commit 517b2804e5
21 changed files with 111 additions and 38 deletions

View File

@@ -0,0 +1,37 @@
{config, pkgs, ... }:
{
networking = {
hostName = "Satori";
wireless.enable = true;
firewall = {
allowedTCPPorts = [ 22 ];
allowedUDPPorts = [ 17840 ];
};
interfaces = {
enp7s0.useDHCP = true;
wlp0s20f3 = {
useDHCP = true;
ipv4.addresses = [ {
prefixLength = 24;
address = "192.168.0.109";
} ];
};
};
wireguard.interfaces.wg0 = {
ips = [ "100.0.0.3/32" ];
listenPort = 17840;
privateKeyFile = "/var/secrets/wg";
peers = [
{
#Oracle VM1
publicKey = "z0Y2VNEWcyVQVSqRHiwmiJ5/0MgSPM+HZfEcwIccSxM=";
allowedIPs = [ "100.0.0.0/24" ];
endpoint = "140.238.230.155:17840";
persistentKeepalive = 25;
}
];
};
nameservers = [ "1.1.1.1" "8.8.8.8" ];
};
}