diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-06-03 18:28:35 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-06-03 18:39:43 +0530 |
commit | 279ff6251173e161cc50d8ae03cb3cd2e90a61a4 (patch) | |
tree | 971260447397a872be4b051b55864b482acc4a57 /global/userdata.nix | |
parent | 4311eaf183976752acdf5624ea68516cac6f0d94 (diff) |
global: init
global contains shared data between home-manager and nixos modules. they're
just structured data, it's doesn't contain any module functionally in
the normal sense, an example is preferred monospace font or user's mail id
`config.global.userdata.email`
Diffstat (limited to 'global/userdata.nix')
-rw-r--r-- | global/userdata.nix | 26 |
1 files changed, 26 insertions, 0 deletions
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"; + }; + }; +} |