nixos-configuration/common/networking.nix

24 lines
443 B
Nix
Raw Normal View History

2023-09-24 14:56:07 +02:00
{...}: {
config = {
services.openssh = {
enable = true;
openFirewall = true;
settings = {
PermitRootLogin = "without-password";
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
services.tailscale = {
enable = true;
openFirewall = true;
};
networking.firewall = {
enable = true;
checkReversePath = "loose";
};
2023-09-24 14:56:07 +02:00
};
}