dotfiles/common/systemModules/sshd.nix
2025-02-22 00:06:11 -05:00

25 lines
454 B
Nix

{ pkgs, ... }:
{
environment = {
systemPackages = with pkgs; [
kitty.terminfo
];
etc = {
"all_users_authorized_keys" = {
source = ./ssh.keys;
mode = "0644";
uid = 0;
gid = 0;
};
};
};
services = {
openssh = {
enable = true;
authorizedKeysFiles = [ "/etc/all_users_authorized_keys" ];
settings = {
PasswordAuthentication = false;
};
};
};
}