Replace tailscale with wireguard

This commit is contained in:
Yan Lin 2025-09-10 18:57:24 +02:00
parent 81f59a8148
commit d0084adcc9
8 changed files with 278 additions and 77 deletions

View file

@ -1,18 +0,0 @@
{ config, pkgs, lib, ... }:
{
# Enable Tailscale service for NixOS
services.tailscale = {
enable = true;
# Enable MagicDNS for better name resolution on NixOS server
useRoutingFeatures = "server";
};
# Allow Tailscale through the firewall if enabled
networking.firewall = {
# Allow Tailscale UDP port
allowedUDPPorts = [ 41641 ];
# Allow traffic from Tailscale subnet
trustedInterfaces = [ "tailscale0" ];
};
}