mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-30 18:03:58 +01:00
feat(desktop): enable the firewall on desktop machines
Signed-off-by: Ryan Yin <xiaoyin_c@qq.com>
This commit is contained in:
1 parent
74598b6f6b
commit
095dc5dee8
4 files changed
+14
-10
No files matched your search
@@ -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