nix-config/modules/server/default.nix

24 lines
449 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;
2025-01-02 19:32:39 +00:00
users.users."0xa" = {
2023-08-05 20:45:36 +02:00
openssh.authorizedKeys.keys = [
2025-01-02 19:32:39 +00:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJl9iYG5oHBq/poBn7Jf1/FGWWbAnbx+NKjs7qtT3uAK 0xa@toaster 2024-12-31"
2023-08-05 20:45:36 +02:00
];
extraGroups = [
"wheel"
];
group = "users";
2025-01-02 19:32:39 +00:00
home = "/home/0xa";
2023-08-05 20:45:36 +02:00
isNormalUser = true;
uid = 1000;
};
2023-06-01 20:33:05 +02:00
}