nixos/services/sshd.nix

19 lines
288 B
Nix

{
config,
lib,
pkgs,
...
}: {
services.openssh = {
enable = true;
ports = [22];
settings = {
UseDns = true;
PermitRootLogin = "without-password";
PasswordAuthentication = false;
GatewayPorts = "yes";
LogLevel = "VERBOSE";
};
};
}