diff --git a/nixos/hosts/bakersfield-rpi4/default.nix b/nixos/hosts/bakersfield-rpi4/default.nix index 4e238719..835a73e8 100644 --- a/nixos/hosts/bakersfield-rpi4/default.nix +++ b/nixos/hosts/bakersfield-rpi4/default.nix @@ -1,14 +1,14 @@ -{ ... }: { +{ hostname, ... }: { imports = [ ../../common/services/tailscale-autoconnect.nix ../../common/modules/raspberry-pi-4.nix ]; time.timeZone = "America/Los_Angeles"; - networking.hostName = "bakersfield-rpi4"; + networking.hostName = hostname; services.tailscale.extraUpFlags = [ "--advertise-exit-node" - "--advertise-routes=192.168.1.13/32,192.168.1.14/32,192.168.1.15/32,192.168.1.100/32,192.168.1.31/32,192.168.1.101/32,192.168.1.99/32,192.168.1.0/24" + "--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 ]; diff --git a/nixos/hosts/nuc-server/default.nix b/nixos/hosts/nuc-server/default.nix index 8115dc3f..edb0e3c8 100644 --- a/nixos/hosts/nuc-server/default.nix +++ b/nixos/hosts/nuc-server/default.nix @@ -1,4 +1,4 @@ -{ hostname, inputs, config, lib, modulesPath, system, ... }: +{ hostname, config, lib, modulesPath, ... }: let ipAddress = "192.168.1.35"; gateway = "192.168.1.1"; @@ -54,7 +54,8 @@ in { # networking.firewall.allowedTCPPorts = [ 22 ]; services.tailscale.extraUpFlags = [ - "--advertise-exit-node" - "--advertise-routes=192.168.1.13/32,192.168.1.14/32,192.168.1.15/32,192.168.1.100/32,192.168.1.31/32,192.168.1.99/32,192.168.1.0/24" + "--advertise-exit-node" + "--accept-routes=false" + "--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.0/24" ]; }