summaryrefslogblamecommitdiff
path: root/modules/userdata.nix
blob: 46c7377cf2c0616acdc32ead3ffbc272db6c128e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                     


                                     
                        





                        
                                             
      




                                           




                                          
    




                                    
    
 
{ config, lib, ... }:

let
  inherit (lib) mkOption types mdDoc;
  cfg = config.userdata;
in
{
  options.userdata =  {
    user = mkOption {
      type = types.str;
      default = "sinan";
      description = mdDoc "Owner's username";
    };
    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";
    };
  };

  config.users.users.${cfg.user} = {
    uid = 1000;
    isNormalUser = true;
    description = cfg.email;
  };
}