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/services/extra/ssh.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 nixos/features/services/extra/ssh.nix (limited to 'nixos/features/services/extra/ssh.nix') diff --git a/nixos/features/services/extra/ssh.nix b/nixos/features/services/extra/ssh.nix new file mode 100644 index 0000000..d1cee26 --- /dev/null +++ b/nixos/features/services/extra/ssh.nix @@ -0,0 +1,14 @@ +{ config, lib, ... }: let + cfg = config.features.services.extra.ssh; +in { + options.features.services.extra.ssh.enable = lib.mkEnableOption "ssh"; + config = lib.mkIf cfg.enable { + services.openssh = { + enable = true; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + }; + }; + }; +} -- cgit v1.2.3