summaryrefslogtreecommitdiff
path: root/global/userdata.nix
blob: d5919204833a871a2177d0eea9aa78fcb7b9c367 (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
{ config, lib, ... }: let
  cfg = config.global.userdata;
in {
  options.global.userdata =  {
    name = lib.mkOption {
      type = lib.types.str;
      default = "sinan";
      description = "Owner's username";
    };
    nameFq = lib.mkOption {
      type = lib.types.str;
      default = "sinanmohd";
      description = "Owner's fully qualified username";
    };
    domain = lib.mkOption {
      type = lib.types.str;
      default = "sinanmohd.com";
      description = "Owner's domain";
    };
    email = lib.mkOption {
      type = lib.types.str;
      default = "${cfg.name}@${cfg.domain}";
      description = "Owner's email";
    };
  };
}