blob: d5919204833a871a2177d0eea9aa78fcb7b9c367 (
plain) (
tree)
|
|
{ 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";
};
};
}
|