dotfiles-nixos/nixos/modules/ssh.nix
2023-06-18 17:03:56 +02:00

14 lines
293 B
Nix

{ config, lib, pkgs, ... }:
{
services.openssh = {
enable = true;
settings = {
# Forbid root login through SSH.
PermitRootLogin = "no";
# Use keys only. Remove if you want to SSH using password (not recommended)
PasswordAuthentication = false;
};
};
}