feat(openssh): init module
This commit is contained in:
16
modules/nixos/openssh.nix
Normal file
16
modules/nixos/openssh.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user