diff options
Diffstat (limited to 'modules/hardcodedUsers.nix')
-rw-r--r-- | modules/hardcodedUsers.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/hardcodedUsers.nix b/modules/hardcodedUsers.nix new file mode 100644 index 0000000..344daf2 --- /dev/null +++ b/modules/hardcodedUsers.nix @@ -0,0 +1,20 @@ +{ config, lib, ... }: { + options.hardcodedUsers = lib.mkOption { + type = lib.types.attrsOf (lib.types.submodule (mod: { + options = { + users = lib.mkOption { + type = lib.types.attrsOf (lib.types.submodule {}); + default = {}; + }; + declarativeUsers = lib.mkOption { + type = config.contracts.declarativeUsers.provider; + default = null; + }; + }; + })); + default = {}; + }; + config.hardcodedUsers.default.declarativeUsers.output = { + inherit (config.hardcodedUsers.default) users; + }; +} |