summaryrefslogtreecommitdiff
path: root/modules/server/default.nix
blob: 6122bfa4197bbb5a7f4d8baf09e332ddd6d902ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ ... }:
{
  imports = [
    ./ssh.nix
  ];

  networking.firewall.enable = true;

  # unpriviliged user
  security.sudo.enable = true;
  users.users."0xa" = {
    openssh.authorizedKeys.keys = [
      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJl9iYG5oHBq/poBn7Jf1/FGWWbAnbx+NKjs7qtT3uAK 0xa@toaster 2024-12-31"
    ];
    extraGroups = [
      "wheel"
    ];
    group = "users";
    home = "/home/0xa";
    isNormalUser = true;
    uid = 1000;
  };
}