From 31c316d19cd974bb81a5d6de62142ff24db1c78e Mon Sep 17 00:00:00 2001 From: triethyl Date: Tue, 2 Sep 2025 10:48:21 -0400 Subject: reorganized directory structure --- nixos/features/server/core/ssh.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 nixos/features/server/core/ssh.nix (limited to 'nixos/features/server/core/ssh.nix') diff --git a/nixos/features/server/core/ssh.nix b/nixos/features/server/core/ssh.nix new file mode 100644 index 0000000..16fec48 --- /dev/null +++ b/nixos/features/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