mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-08-24 04:03:56 +02:00
feat(desktop): enable the firewall on desktop machines
Signed-off-by: Ryan Yin <xiaoyin_c@qq.com>
This commit is contained in:
@@ -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" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user