nix-config/modules/ssh/default.nix

18 lines
333 B
Nix
Raw Normal View History

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