nix-config/modules/ssh/default.nix

14 lines
260 B
Nix

{ ... }:
{
services.openssh = {
enable = true;
startWhenNeeded = true;
ports = [ 2222 ];
openFirewall = true;
settings = {
AllowUsers = [ "tdback" ];
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
}