flake/nixos/profiles/server/default.nix

19 lines
426 B
Nix
Raw Normal View History

2024-08-27 21:44:22 +00:00
{ pkgs, ... }:
{
2024-08-01 22:17:30 +00:00
environment.systemPackages = with pkgs; [
foot.terminfo
2023-12-30 14:41:46 +00:00
];
2024-08-01 22:17:30 +00:00
2024-08-27 21:44:22 +00:00
services.openssh = {
enable = true;
settings.PermitRootLogin = "prohibit-password";
settings.PasswordAuthentication = false;
};
users.users."root".openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMmd/uqiBahzKcKMJ+gT3dkUIdrWQgudspsDchDlx1E/ guanran928@outlook.com"
];
2024-08-23 08:10:31 +00:00
time.timeZone = "UTC";
2023-12-30 14:41:46 +00:00
}