dotfiles/common/systemModules/sshd.nix

26 lines
454 B
Nix
Raw Normal View History

2025-02-21 23:33:30 -05:00
{ pkgs, ... }:
2025-02-21 21:45:59 -05:00
{
2025-02-21 23:33:30 -05:00
environment = {
systemPackages = with pkgs; [
kitty.terminfo
];
2025-02-22 00:03:30 -05:00
etc = {
"all_users_authorized_keys" = {
source = ./ssh.keys;
mode = "0600";
uid = 0;
gid = 0;
};
};
2025-02-21 23:33:30 -05:00
};
services = {
openssh = {
enable = true;
2025-02-22 00:03:30 -05:00
authorizedKeysFiles = [ "/etc/all_users_authorized_keys" ];
2025-02-21 23:40:32 -05:00
settings = {
PasswordAuthentication = false;
};
2025-02-21 21:45:59 -05:00
};
2025-02-21 23:33:30 -05:00
};
2025-02-21 21:45:59 -05:00
}