Files
tuxcord.nix/nixos/openssh.nix
T
ErrorNoInternet f4b32d90d0
Check / Nix flake (push) Has been cancelled
Lint / Nix expressions (push) Has been cancelled
treewide: separate ssh keys
2026-05-02 17:27:59 -04:00

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;
};
}