summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/users.nix
blob: c1ad4b44bb1c1831874184b624893324ac40ac86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, ... }: let
  lib = import ../../lib;
in {
  options.krebs.users = lib.mkOption {
    type = with lib.types; attrsOf user;
  };
  config = lib.mkIf config.krebs.enable {
    krebs.users = {
      krebs = {
        home = "/krebs";
        mail = "spam@krebsco.de";
      };
      root = {
        home = "/root";
        pubkey = config.krebs.build.host.ssh.pubkey;
        uid = 0;
      };
    };
  };
}