nix-config/modules/server/ssh.nix

15 lines
403 B
Nix
Raw Permalink Normal View History

2023-06-01 20:33:05 +02:00
{ ... }:
{
programs.mosh.enable = true;
services.openssh = {
enable = true;
2023-09-24 00:57:55 +02:00
settings.PermitRootLogin = "prohibit-password";
2023-08-05 21:06:23 +02:00
settings.PasswordAuthentication = false;
2023-06-01 20:33:05 +02:00
};
2025-01-03 23:31:05 +00:00
networking.firewall.allowedTCPPorts = [ 22 ];
2023-08-24 19:54:14 +02:00
users.users.root.openssh.authorizedKeys.keys = [
2025-01-02 19:32:39 +00:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJl9iYG5oHBq/poBn7Jf1/FGWWbAnbx+NKjs7qtT3uAK 0xa@toaster 2024-12-31"
2023-08-24 19:54:14 +02:00
];
2023-06-01 20:33:05 +02:00
}