From 2dff9d2b61244fed49136028d0e0f6ae3ae759cf Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 16 Jan 2025 00:13:06 -0800 Subject: modules about done --- nix/modules/ssh.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 nix/modules/ssh.nix (limited to 'nix/modules/ssh.nix') diff --git a/nix/modules/ssh.nix b/nix/modules/ssh.nix new file mode 100644 index 0000000..6083393 --- /dev/null +++ b/nix/modules/ssh.nix @@ -0,0 +1,10 @@ +{ config, ... }: +{ + enable = true; + settings = { + PasswordAuthentication = true; + AllowUsers = [ config.vars.userName ]; + PermitRootLogin = "no"; + KbdInteractiveAuthentication = false; + }; +} -- cgit