ark/hosts/wolumonde/ssh.nix

11 lines
254 B
Nix
Raw Normal View History

2022-08-11 02:57:40 +03:00
{inputs, ...}: {
services.fail2ban.enable = true;
services.openssh = {
enable = true;
passwordAuthentication = false;
};
users.users.root.openssh.authorizedKeys.keys = [
(builtins.readFile "${inputs.self}/secrets/ssh-key.pub")
];
}