NixOS/hosts/luna/modules/ssh.nix

16 lines
236 B
Nix
Raw Normal View History

2023-10-27 01:46:14 -05:00
{ pkgs, ... }:
{
services.openssh = {
enable = true;
settings = {
passwordAuthentication = false;
PermitRootLogin = "prohibit-password";
startWhenNeeded = true;
};
ports = [
2200
];
};
}