dotfiles/nixos/modules/open-ssh.nix
2025-01-22 11:14:58 +01:00

14 lines
265 B
Nix

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