From 4bbaf8fff29ea4f50771025327cb16ed8995aab7 Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Sat, 20 Dec 2025 16:47:15 -0600 Subject: work on agenix --- modules/services/nixos/ssh.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 modules/services/nixos/ssh.nix (limited to 'modules/services/nixos/ssh.nix') diff --git a/modules/services/nixos/ssh.nix b/modules/services/nixos/ssh.nix new file mode 100644 index 0000000..6db41bf --- /dev/null +++ b/modules/services/nixos/ssh.nix @@ -0,0 +1,17 @@ +{ + pkgs, + config, + lib, + ... +}: let + cfg = config.collinux.services.networking.sshd; +in + lib.mkIf cfg.enable { + services.openssh = { + enable = true; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + }; + }; + } -- cgit v1.3.1