dotfiles/nixos/modules/open-ssh.nix
2025-01-16 23:26:43 +01:00

14 lines
No EOL
264 B
Nix

{ pkgs, ... }:
{
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
AllowUsers = [ "bart" ];
};
};
}