From 9786eb8672213344d8d1b7bdef12bc94510b20db Mon Sep 17 00:00:00 2001 From: outremonde Date: Tue, 10 Jun 2025 20:32:00 -0400 Subject: initialized repository Former-commit-id: 84647f22b951a957b2b83885b612115d473f6626 --- features/system/server/core/ssh.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 features/system/server/core/ssh.nix (limited to 'features/system/server/core') diff --git a/features/system/server/core/ssh.nix b/features/system/server/core/ssh.nix new file mode 100644 index 0000000..16fec48 --- /dev/null +++ b/features/system/server/core/ssh.nix @@ -0,0 +1,15 @@ +{ config, lib, ... }: let + cfg = config.features.server.ssh; +in { + options.features.server.ssh.enable = lib.mkEnableOption "sshd"; + config = lib.mkIf cfg.enable { + services.openssh = { + enable = true; + ports = [ 2200 ]; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + }; + }; + }; +} -- cgit v1.2.3