lib/ssh: add more ssh keys

This commit is contained in:
2026-05-03 00:11:27 +02:00
parent d4d560c30f
commit eaaffcc289
3 changed files with 48 additions and 30 deletions
+1 -5
View File
@@ -1,17 +1,13 @@
{ self, ... }:
{
services.openssh = {
enable = true;
settings = {
ClientAliveInterval = 300;
KbdInteractiveAuthentication = false;
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
users.users.root.openssh.authorizedKeys.keys = builtins.attrValues {
inherit (import "${self}/lib/ssh/keys.nix") error javalsai;
};
}