nix-config/modules/ssh/default.nix

16 lines
261 B
Nix
Raw Normal View History

2024-11-10 17:54:08 -05:00
{ ... }:
{
services.openssh = {
enable = true;
startWhenNeeded = true;
ports = [ 2222 ];
openFirewall = true;
settings = {
AllowUsers = [ "tdback" ];
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
}