dotfiles/systems/_common/components/ssh.nix
2024-04-01 10:32:53 -05:00

10 lines
224 B
Nix

{ ... }:
{
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.openssh.settings.PermitRootLogin = "yes";
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [
22 # sshd
];
}