all repos — nixfiles @ 0707f1c66675e99ee1dbd259c05d9c6a9b580463

System and user configuration, managed by nix and home-manager

home: allow ssh through firewall if no trusted interfaces set

Alin
commit

0707f1c66675e99ee1dbd259c05d9c6a9b580463

parent

c21bb66215e8cbedf8bd9d1a9b84c9d90a033daf

1 file changed, 10 insertions(+), 2 deletions(-)

changed files
M system/roles/home.nix → system/roles/home.nix
@@ -1,5 +1,13 @@
-{ ... }: +{ + config, + lib, + ... +}: { networking.domain = "home.arpa"; - services.openssh.openFirewall = false; + + services.openssh.openFirewall = lib.mkDefault ( + # default to open for new machines until firewall is fully configured + builtins.length config.networking.firewall.trustedInterfaces == 0 + ); }