feat(openssh): init module

This commit is contained in:
msyds committed 2025-09-20 13:22:07 -06:00
1 parent aec7d608df
commit 021b3e9f19
4 files changed
+21 -22

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.openssh;
in {
options.sydnix.openssh = {
enable = lib.mkEnableOption "OpenSSH server";
};
config = lib.mkIf cfg.enable {
services.openssh = {
enable = true;
settings.PermitRootLogin = "yes";
settings.X11Forwarding = true;
};
};
}