mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-02-23 08:39:11 -05:00
25 lines
454 B
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
}
|