feat(openssh): init module

This commit is contained in:
2025-09-20 13:21:56 -06:00
parent aec7d608df
commit 021b3e9f19
4 changed files with 21 additions and 22 deletions

16
modules/nixos/openssh.nix Normal file
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;
};
};
}