thinkpads: tailscale config

main
Elnu 2 months ago
parent b8dee3c294
commit 3ae89fd0cf

@ -26,16 +26,10 @@
networkmanager.enable = true; networkmanager.enable = true;
# networking.nameservers doesn't apply to resolvconf # networking.nameservers doesn't apply to resolvconf
#nameservers = [ "9.9.9.9" "1.1.1.1" ]; #nameservers = [ "9.9.9.9" "1.1.1.1" ];
resolvconf.extraConfig = "name_servers=\"9.9.9.9 1.1.1.1\""; # resolvconf.extraConfig = "name_servers=\"9.9.9.9 1.1.1.1\"";
# Temporary since MagicDNS is broken # Temporary since MagicDNS is broken
hosts = { hosts = {
"192.168.0.26" = [ "elnuhub.local" ]; "192.168.1.168" = [ "elnuhub.local" ];
"24.199.72.8" = [ "elnudrop.local" ];
"100.64.0.1" = [ "elnu" ];
"100.64.0.2" = [ "elnuhub" ];
"100.64.0.3" = [ "elnudrop" ];
"100.64.0.4" = [ "pang13" ];
"100.64.0.5" = [ "elnucentre" ];
}; };
}; };

@ -1,4 +1,4 @@
{ ... }: { config, ... }:
{ {
imports = [ (import ./hardware-configuration.nix) ]; imports = [ (import ./hardware-configuration.nix) ];
@ -15,6 +15,16 @@
}; };
}; };
services.tailscale.enable = true;
networking.nameservers = [ "100.100.100.100" ];
networking.search = [ "junko-dace.ts.net" ];
networking.firewall = {
checkReversePath = "loose";
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
# Use X11 caps lock to escape remap in TTY # Use X11 caps lock to escape remap in TTY
console.useXkbConfig = true; console.useXkbConfig = true;
services.xserver.xkbOptions = "caps:escape"; services.xserver.xkbOptions = "caps:escape";

Loading…
Cancel
Save