feat(openssh): init module
This commit is contained in:
1 parent
aec7d608df
commit
021b3e9f19
4 files changed
+21
-22
No files matched your search
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user