homelab/nixos/shared/ssh.nix
2025-05-22 22:24:20 +02:00

11 lines
198 B
Nix

{ config, pkgs, ... }: {
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
}