Fixed Option

This commit is contained in:
2026-04-05 21:09:17 +02:00
parent d1b35c5abc
commit 8f9d6204ee

View File

@@ -1,4 +1,5 @@
_: { { primaryUser, ... }:
{
services.openssh = { services.openssh = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
@@ -6,9 +7,8 @@ _: {
PasswordAuthentication = false; PasswordAuthentication = false;
PermitRootLogin = "no"; PermitRootLogin = "no";
}; };
authorizedKeys.keyFiles = [ ../secrets/ssh-key ];
}; };
users.users.${primaryUser}.openssh.authorizedKeys.keyFiles = [ ../secrets/ssh-key ];
programs.ssh.startAgent = true; programs.ssh.startAgent = true;
} }