15 lines
519 B
Nix
15 lines
519 B
Nix
{ hostname, ... }: {
|
|
imports = [
|
|
../../common/services/tailscale-autoconnect.nix
|
|
../../common/modules/raspberry-pi-4.nix
|
|
];
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
|
networking.hostName = hostname;
|
|
services.tailscale.extraUpFlags = [
|
|
"--advertise-exit-node"
|
|
"--advertise-routes=192.168.1.31/32,192.168.1.32/32,192.168.1.33/32,192.168.1.34/32,192.168.1.35/32,192.168.1.0/24"
|
|
];
|
|
boot.kernel.sysctl = { "net.ipv4.ip_forward" = true; };
|
|
# networking.firewall.allowedTCPPorts = [ 22 ];
|
|
}
|