Files
nixos/modules/sshd.nix
T
2026-09-29 13:58:24 +02:00

14 lines
213 B
Nix

{ config, pkgs, ... }:
{
services.openssh.enable = true;
services.openssh.settings = {
PasswordAuthentication = true;
PermitRootLogin = "no";
};
networking.firewall.allowedTCPPorts = [ 22 ];
}