17 lines
333 B
Nix
17 lines
333 B
Nix
{ lib, ... }:
|
|
let
|
|
ports = lib.lists.singleton 2222;
|
|
in
|
|
{
|
|
services.openssh = {
|
|
enable = lib.mkDefault true;
|
|
ports = ports;
|
|
openFirewall = true;
|
|
startWhenNeeded = true;
|
|
settings = {
|
|
AllowUsers = [ "tdback" ];
|
|
PermitRootLogin = "no";
|
|
PasswordAuthentication = lib.mkDefault false;
|
|
};
|
|
};
|
|
}
|