From 22bc76a0fc5eda6735fe7711a8afc330fe44e5ca Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Tue, 15 Jul 2025 10:42:32 +0000 Subject: [PATCH] Add smini nix config with modularised config --- nixos/ssh.nix | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/nixos/ssh.nix b/nixos/ssh.nix new file mode 100644 index 0000000..3638b06 --- /dev/null +++ b/nixos/ssh.nix @@ -0,0 +1,14 @@ +{ config, libs, pkgs, modulesPath, ... }: + +{ + services.openssh = { + enable = true; + ports = [ 22 ]; + settings = { + PasswordAuthentication = false; + KbdInteractiveAuthentication = false; + PermitRootLogin = "no"; + }; + }; + +} -- Gitblit v1.10.0