18 lines
377 B
Nix
18 lines
377 B
Nix
{ 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;
|
|
};
|
|
}
|