clean up networking on tailnet

This commit is contained in:
Don Harper 2025-08-06 23:33:17 -05:00
parent 12af203ff1
commit e32816dcf6
4 changed files with 21 additions and 14 deletions

View file

@ -100,7 +100,9 @@
services = { services = {
syncthing = { syncthing = {
enable = true; enable = true;
guiAddress = "${osConfig.networking.hostName}:8384"; guiAddress = "${osConfig.variables.addresses}:8384";
overrideDevices = false;
overrideFolders = false;
tray.enable = true; tray.enable = true;
}; };
gpg-agent = { gpg-agent = {

View file

@ -6,6 +6,7 @@
../workstation ../workstation
]; ];
networking.hostName = "book"; networking.hostName = "book";
variables.addresses = "100.72.121.75";
variables.swayScale = "1.5"; variables.swayScale = "1.5";
roles = { roles = {

View file

@ -7,6 +7,7 @@
]; ];
networking.hostName = "loki"; networking.hostName = "loki";
boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
variables.addresses = "100.72.0.1";
variables.swayScale = "1.1"; variables.swayScale = "1.1";
roles = { roles = {

View file

@ -67,19 +67,19 @@ in {
to = 1764; to = 1764;
}]; }];
allowedTCPPorts = [ 22 ]; allowedTCPPorts = [ 22 ];
interfaces = { # interfaces = {
"tailscale0" = { # "tailscale0" = {
allowedTCPPorts = [ 22 8080 8443 8384 ]; # allowedTCPPorts = [ 22 8080 8443 8384 ];
allowedTCPPortRanges = [{ # allowedTCPPortRanges = [{
from = 1714; # from = 1714;
to = 1764; # to = 1764;
}]; # }];
allowedUDPPortRanges = [{ # allowedUDPPortRanges = [{
from = 1714; # from = 1714;
to = 1764; # to = 1764;
}]; # }];
}; # };
}; # };
}; };
}; };
@ -133,7 +133,10 @@ in {
}; };
}; };
powerManagement.powertop.enable = true;
services = { services = {
power-profiles-daemon.enable = false;
avahi = { avahi = {
enable = true; enable = true;
nssmdns4 = true; nssmdns4 = true;