fix vpn and add rofi toggle

This commit is contained in:
GammaKinematics 2026-03-30 17:57:08 +07:00
parent 43998b73d7
commit ae06e0c8c2
3 changed files with 39 additions and 1 deletions

View file

@ -11,6 +11,7 @@
networking.firewall = {
allowedTCPPorts = [ 22 80 443 2222 ];
allowedUDPPorts = [ 51820 53 ]; # Wireguard, Adguard DNS
checkReversePath = "loose"; # Required for WireGuard NAT
};
# ============================================================================
@ -259,7 +260,7 @@
# NAT for Wireguard clients to access the internet
networking.nat = {
enable = true;
externalInterface = "ens3";
externalInterface = "enp1s0";
internalInterfaces = [ "wg0" ];
};