blob: 564f1f0784c58295eabd4332533bd3c60cc3fc31 (
plain) (
tree)
|
|
{ config, lib, ... }:
let
inherit (lib) mkOption types;
cfg = config.userdata;
in
{
options.userdata = {
name = mkOption {
type = types.str;
default = "sinan";
description = "Owner's username";
};
nameFq = mkOption {
type = types.str;
default = "sinanmohd";
description = "Owner's fully qualified username";
};
domain = mkOption {
type = types.str;
default = "sinanmohd.com";
description = "Owner's domain";
};
email = mkOption {
type = types.str;
default = "${cfg.name}@${cfg.domain}";
description = "Owner's email";
};
};
}
|