From e441dc43cf5c9707cf580c36805a5aaa66f33b3c Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 2 Sep 2023 11:45:57 +0530 Subject: module/userdata: init --- modules/userdata.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/userdata.nix (limited to 'modules/userdata.nix') diff --git a/modules/userdata.nix b/modules/userdata.nix new file mode 100644 index 0000000..71a5a96 --- /dev/null +++ b/modules/userdata.nix @@ -0,0 +1,18 @@ +{ lib, ... }: + +let + inherit (lib) mkOption types mdDoc; +in +{ + options.userdata = { + user = mkOption { + type = types.str; + default = "sinan"; + description = mdDoc "owner's username"; + }; + groups = mkOption { + type = types.listOf types.str; + description = mdDoc "Groups the owner should be in"; + }; + }; +} -- cgit v1.2.3