feat(desktop): enable the firewall on desktop machines

Signed-off-by: Ryan Yin <xiaoyin_c@qq.com>
This commit is contained in:
Ryan Yin
2026-07-26 22:26:01 +08:00
parent 74598b6f6b
commit 095dc5dee8
4 changed files with 14 additions and 10 deletions
@@ -0,0 +1,10 @@
# Desktops hold personal data and laptops join untrusted networks, so enable the
# firewall here (repo-wide default is off, see modules/nixos/base/ssh.nix).
# SSH/Tailscale/LocalSend/Sunshine keep working via their own `openFirewall` options.
{
networking.firewall = {
enable = true;
# Trust everything from the tailnet.
trustedInterfaces = [ "tailscale0" ];
};
}