nixos-config/modules/core/sshd.nix

16 lines
368 B
Nix
Raw Normal View History

{ ... }:
{
services.openssh = {
enable = true;
ports = [22];
settings = {
2024-10-13 20:02:48 +02:00
PasswordAuthentication = false;
AllowUsers = null;
2024-10-13 20:02:48 +02:00
PermitRootLogin = "no";
LoginGraceTime = 0;
};
};
users.users.liv.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGXi00z/rxVrWLKgYr+tWIsbHsSQO75hUMSTThNm5wUw liv@lila" ];
}