From 3ea06b0f61da129b6cd6a4f4d8648f051c30a74c Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 8 Mar 2024 17:42:39 +0530 Subject: home-manager: init --- userdata.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 userdata.nix (limited to 'userdata.nix') 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"; + }; + }; +} -- cgit v1.2.3