enable ssh for root

This commit is contained in:
2026-08-23 14:49:55 -05:00
parent 2ada0e3e3a
commit cc76377b37
+9 -7
View File
@@ -1,9 +1,11 @@
{ pkgs, config, lib, ... }:
let
cfg = config.system.ssh;
in
{ {
pkgs,
config,
lib,
...
}: let
cfg = config.system.ssh;
in {
options.system.ssh = { options.system.ssh = {
enable = lib.mkEnableOption "enables ssh"; enable = lib.mkEnableOption "enables ssh";
}; };
@@ -14,11 +16,11 @@ in
enable = true; enable = true;
settings = { settings = {
PasswordAuthentication = false; PasswordAuthentication = false;
PermitRootLogin = "no"; PermitRootLogin = "prohibit-password";
X11Forwarding = false; X11Forwarding = false;
}; };
}; };
# open firewall # open firewall
networking.firewall.allowedTCPPorts = [ 22 ]; networking.firewall.allowedTCPPorts = [22];
}; };
} }