diff options
Diffstat (limited to 'userdata.nix')
-rw-r--r-- | userdata.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/userdata.nix b/userdata.nix new file mode 100644 index 0000000..ebcd1db --- /dev/null +++ b/userdata.nix @@ -0,0 +1,30 @@ +{ config, lib, ... }: + +let + inherit (lib) mkOption types; + cfg = config.userdata; +in +{ + options.userdata = { + user = mkOption { + type = types.str; + default = "sinan"; + description = "Owner's username"; + }; + userFq = 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.user}@${cfg.domain}"; + description = "Owner's email"; + }; + }; +} |