diff options
Diffstat (limited to 'global')
-rw-r--r-- | global/default.nix | 5 | ||||
-rw-r--r-- | global/userdata.nix | 26 |
2 files changed, 31 insertions, 0 deletions
diff --git a/global/default.nix b/global/default.nix new file mode 100644 index 0000000..5bcb1ba --- /dev/null +++ b/global/default.nix @@ -0,0 +1,5 @@ +{ ... }: { + imports = [ + ./userdata.nix + ]; +} diff --git a/global/userdata.nix b/global/userdata.nix new file mode 100644 index 0000000..d591920 --- /dev/null +++ b/global/userdata.nix @@ -0,0 +1,26 @@ +{ 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"; + }; + }; +} |