nixos/modules/server/ssh.nix
2025-03-22 21:39:53 -04:00

14 lines
384 B
Nix

{
services.openssh = {
enable = true;
knownHosts.quadraticpc.publicKeyFile = builtins.fetchurl {
url = "https://github.com/Henry-Hiles.keys";
sha256 = "1k73c228rgzq7ymf5vaj6wfqzkqm6yzq5lq0syb7mzbrvngvr2jc";
};
settings = {
PasswordAuthentication = true; # TODO: False
AllowUsers = ["quadradical"];
PermitRootLogin = "no";
};
};
}