nix-config/modules/ssh/default.nix

17 lines
305 B
Nix

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