ark/hosts/wolumonde/modules/ssh.nix
2023-10-13 23:14:32 +03:00

11 lines
268 B
Nix

{inputs, ...}: {
services.fail2ban.enable = true;
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
};
users.users.root.openssh.authorizedKeys.keys = [
(builtins.readFile "${inputs.self}/secrets/yusdacra.key.pub")
];
}