summaryrefslogblamecommitdiff
path: root/global/common/modules/userdata.nix
blob: d5919204833a871a2177d0eea9aa78fcb7b9c367 (plain) (tree)
1
2
3
4
5
6
7
8
9





                               


                                       

                           


                                                       

                           


                                     

                           
                                            



                                    
{ 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";
    };
  };
}