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