lib/ssh: add more ssh keys

This commit is contained in:
2026-05-03 00:11:27 +02:00
committed by ErrorNoInternet
parent d4d560c30f
commit cc52b0e6cb
3 changed files with 39 additions and 21 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;
};
}