flake/nixos/profiles/server/default.nix

21 lines
486 B
Nix
Raw Normal View History

2024-08-27 21:44:22 +00:00
{ pkgs, ... }:
{
2024-09-20 17:38:01 +00:00
imports = [ ../prometheus ];
2024-08-29 17:42:37 +00:00
2024-09-20 17:38:01 +00:00
environment.systemPackages = with pkgs; [ foot.terminfo ];
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";
2024-08-31 02:15:09 +00:00
networking.domain = "ny4.dev";
2023-12-30 14:41:46 +00:00
}