tuserver/services/openssh.nix
Katharina Heidenreich a28c2b5563 feat: initial commit
2026-04-08 20:53:49 +02:00

17 lines
333 B
Nix

{ ... }:
let
opensshConfig = import ../config/openssh.nix;
usersWithKeys = opensshConfig.ssh_users;
in
{
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = true;
PermitRootLogin = "no";
AllowUsers = usersWithKeys;
};
};
networking.firewall.allowedTCPPorts = [ 22 ];
}