nix-config/modules/server/default.nix

26 lines
640 B
Nix
Raw Normal View History

2023-06-01 20:33:05 +02:00
{ ... }:
{
imports = [
./ssh.nix
];
networking.firewall.enable = true;
2023-08-05 20:45:36 +02:00
# unpriviliged user
security.sudo.enable = true;
users.users.g = {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHv82n6F6kwJ3/EMYlOoCc1/NaYFW7QHC5F8jKVzdlio gshipunov@toaster"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA3to/h8Myn+zXAkjboaRVqOfmtDz7VpIHhHbaRoYyPX g.shipunov@uva.nl"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICPPG1va3CG8uAXV+ACRFPdi8FicpdOyXqb7eSZJCPXx pixel"
];
extraGroups = [
"wheel"
];
group = "users";
home = "/home/g";
isNormalUser = true;
uid = 1000;
};
2023-06-01 20:33:05 +02:00
}