Files
dotfiles/hosts/satori/networking.nix
Amneesh Singh 07325d0112 hosts/satori: changes
networking: change gateway cuz new router
graphics: use the stable nvidia drivers
misc changes

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2022-11-24 04:38:28 +05:30

31 lines
768 B
Nix

{ config, pkgs, ... }:
{
networking = {
hostName = "satori";
hostId = "beca3df0";
defaultGateway = "192.168.1.1";
wireless.enable = true;
wireless.interfaces = [ "wlp0s20f3" ];
firewall = {
allowedTCPPorts = [ 22 18172 6600 8001 ];
allowedUDPPorts = [ 22 17840 18172 ];
trustedInterfaces = [ "docker0" ];
};
wireguard.interfaces.wg0 = {
ips = [ "10.55.0.3/32" ];
listenPort = 17840;
privateKeyFile = "/var/secrets/wg.key";
peers = [
{
#Oracle VM1
publicKey = "z0Y2VNEWcyVQVSqRHiwmiJ5/0MgSPM+HZfEcwIccSxM=";
allowedIPs = [ "10.55.0.0/24" ];
endpoint = "weirdnatto.in:17840";
persistentKeepalive = 25;
}
];
};
};
}