nixos/modules/server/ssh.nix

11 lines
279 B
Nix

{
users.users.quadradical.openssh.authorizedKeys.keys = import ../../secrets/keys.nix;
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = true; # TODO: False
AllowUsers = ["quadradical"];
PermitRootLogin = "no";
};
};
}