blob: 16fec48dc6ae9fbfd53a2c004aa4999d8021cc5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{ config, lib, ... }: let
cfg = config.features.server.ssh;
in {
options.features.server.ssh.enable = lib.mkEnableOption "sshd";
config = lib.mkIf cfg.enable {
services.openssh = {
enable = true;
ports = [ 2200 ];
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
};
}
|