blob: 344daf240798c2793e127f364d44504be90ba353 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
};
}
|