guhhh i love sshd

This commit is contained in:
sadan 2025-02-22 00:03:30 -05:00
parent ff09a57d27
commit f071f4a5c2
No known key found for this signature in database

View file

@ -4,11 +4,19 @@
systemPackages = with pkgs; [
kitty.terminfo
];
etc = {
"all_users_authorized_keys" = {
source = ./ssh.keys;
mode = "0600";
uid = 0;
gid = 0;
};
};
};
services = {
openssh = {
enable = true;
authorizedKeysFiles = [ "${./ssh.keys}" ];
authorizedKeysFiles = [ "/etc/all_users_authorized_keys" ];
settings = {
PasswordAuthentication = false;
};