From f071f4a5c21816017bd010167b27f8dcaad52be3 Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Sat, 22 Feb 2025 00:03:30 -0500 Subject: [PATCH] guhhh i love sshd --- common/systemModules/sshd.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/common/systemModules/sshd.nix b/common/systemModules/sshd.nix index 0c0d2a2..a33b4dd 100644 --- a/common/systemModules/sshd.nix +++ b/common/systemModules/sshd.nix @@ -4,11 +4,19 @@ systemPackages = with pkgs; [ kitty.terminfo ]; + etc = { + "all_users_authorized_keys" = { + source = ./ssh.keys; + mode = "0600"; + uid = 0; + gid = 0; + }; + }; }; services = { openssh = { enable = true; - authorizedKeysFiles = [ "${./ssh.keys}" ]; + authorizedKeysFiles = [ "/etc/all_users_authorized_keys" ]; settings = { PasswordAuthentication = false; };