2024-11-24 09:55:02 -05:00
|
|
|
{ lib, ... }:
|
2024-10-09 03:36:08 -04:00
|
|
|
{
|
2024-11-04 22:41:38 -05:00
|
|
|
imports = [ ./fail2ban ];
|
2024-10-07 11:42:34 -04:00
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
2024-11-24 09:55:02 -05:00
|
|
|
PermitRootLogin = lib.mkForce "no";
|
2024-10-07 11:42:34 -04:00
|
|
|
PrintLastLog = "no";
|
|
|
|
PasswordAuthentication = false;
|
|
|
|
UsePAM = false;
|
|
|
|
};
|
|
|
|
};
|
2024-11-05 05:49:14 -05:00
|
|
|
|
|
|
|
environment.persistence."/persist".files = [
|
|
|
|
"/etc/ssh/ssh_host_ed25519_key"
|
|
|
|
"/etc/ssh/ssh_host_ed25519_key.pub"
|
|
|
|
"/etc/ssh/ssh_host_rsa_key"
|
|
|
|
"/etc/ssh/ssh_host_rsa_key.pub"
|
|
|
|
];
|
2024-10-07 11:42:34 -04:00
|
|
|
}
|