diff options
Diffstat (limited to 'components/services/openssh.nix')
| -rw-r--r-- | components/services/openssh.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/components/services/openssh.nix b/components/services/openssh.nix new file mode 100644 index 0000000..66a6499 --- /dev/null +++ b/components/services/openssh.nix @@ -0,0 +1,15 @@ +{lib, config, ...}: { + options.openssh.enable = lib.mkEnableOption "OpenSSH server"; + + config = lib.mkIf config.openssh.enable { + services.openssh = { + enable = true; + + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + PrintMotd = false; + }; + }; + }; +} |
