nix-stuff/roles/server/ssh.nix
2023-06-15 13:07:37 +02:00

12 lines
173 B
Nix
Executable file

{ config, ... }:
{
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
startWhenNeeded = true;
};
}