ark/hosts/wolumonde/modules/ssh.nix

11 lines
268 B
Nix
Raw Normal View History

2022-08-11 02:57:40 +03:00
{inputs, ...}: {
services.fail2ban.enable = true;
services.openssh = {
enable = true;
2023-10-13 23:14:32 +03:00
settings.PasswordAuthentication = false;
2022-08-11 02:57:40 +03:00
};
users.users.root.openssh.authorizedKeys.keys = [
2023-05-05 03:50:25 +03:00
(builtins.readFile "${inputs.self}/secrets/yusdacra.key.pub")
2022-08-11 02:57:40 +03:00
];
}