2024-11-12 18:35:52 -05:00
|
|
|
{ lib, ... }:
|
|
|
|
let
|
|
|
|
ports = lib.lists.singleton 2222;
|
|
|
|
in
|
2024-11-10 17:54:08 -05:00
|
|
|
{
|
|
|
|
services.openssh = {
|
2024-11-12 19:28:26 -05:00
|
|
|
enable = lib.mkDefault true;
|
2024-11-12 18:35:52 -05:00
|
|
|
ports = ports;
|
2024-11-10 17:54:08 -05:00
|
|
|
openFirewall = true;
|
2024-11-12 19:28:26 -05:00
|
|
|
startWhenNeeded = true;
|
2024-11-10 17:54:08 -05:00
|
|
|
settings = {
|
|
|
|
AllowUsers = [ "tdback" ];
|
|
|
|
PermitRootLogin = "no";
|
2024-11-12 19:28:26 -05:00
|
|
|
PasswordAuthentication = lib.mkDefault false;
|
2024-11-10 17:54:08 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|