summaryrefslogtreecommitdiff
path: root/users.nix
blob: 6f21c51df1c4d1858959906570d747dd15a07c85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{config, ...}:

let
  baseUsers = {
    "gkleen" = import ./users/gkleen.nix;
  };
  extraUsers = {
    ymir = {
      "mherold" = import ./users/mherold.nix;
      "some" = import ./users/some.nix;
      "llovisa" = import ./users/llovisa.nix;
      "vkleen" = import ./users/vkleen.nix;
      "tkleen" = import ./users/tkleen.nix;
      "mkleen" = import ./users/mkleen.nix;
      "lkellers" = import ./users/lkellers.nix;
      "mwgnr" = import ./users/mwagner.nix;
      "ineumann" = import ./users/ineumann.nix;
      "sselle" = import ./users/sselle.nix;
      "sgoebels" = import ./users/sgoebels.nix;
      "mtrinh" = import ./users/mtrinh.nix;
    };
    odin = {
      "mherold" = import ./users/mherold.nix;
    };
  };
  host = config.networking.hostName;
in {
  users.mutableUsers = false;
  users.extraUsers = baseUsers // (if builtins.hasAttr host extraUsers then builtins.getAttr host extraUsers else {});
}