summaryrefslogtreecommitdiff
path: root/modules/userdata.nix
blob: 9873dede987e91a4a07212a0b64dd0bd2245514e (plain) (blame)
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
31
32
33
34
35
36
37
38
39
40
41
42
{ lib, ... }:

let
  inherit (lib) mkOption types mdDoc;
in
{
  options.userdata =  {
    user = mkOption {
      type = types.str;
      default = "sinan";
      description = mdDoc "Owner's username";
    };
    description = mkOption {
      type = types.str;
      default = "sinanmohd";
      description = mdDoc "Owner's description";
    };
    groups = mkOption {
      type = types.listOf types.str;
      default = [];
      description = mdDoc "Groups the owner should be in";
    };
    domain = mkOption {
      type = types.str;
      default = "sinanmohd.com";
      description = mdDoc "Owner's domain";
    };
    email = mkOption {
      type = types.str;
      default = "sinan@firemail.cc";
      description = mdDoc "Owner's email";
    };
    pubKeys = mkOption {
      type = types.listOf types.str;
      description = mdDoc "Owner's public ssh keys";
      default = [
        "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDCeMXhkjm9CabbA/1xdtP9bvFEm8pVXPk66NmI9/VvQ sinan@veu"
        "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL8LnyOuPmtKRqAZeHueNN4kfYvpRQVwCivSTq+SZvDU sinan@cez"
      ];
    };
  };
}