thinkpads: tailscale config

main
Elnu 3 months ago
parent b8dee3c294
commit 3ae89fd0cf

@ -26,16 +26,10 @@
networkmanager.enable = true;
# networking.nameservers doesn't apply to resolvconf
#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
hosts = {
"192.168.0.26" = [ "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" ];
"192.168.1.168" = [ "elnuhub.local" ];
};
};

@ -1,4 +1,4 @@
{ ... }:
{ config, ... }:
{
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
console.useXkbConfig = true;
services.xserver.xkbOptions = "caps:escape";

Loading…
Cancel
Save