auth: add meta to all options
This commit is contained in:
@@ -53,17 +53,32 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.selfprivacy.modules.auth = {
|
options.selfprivacy.modules.auth = {
|
||||||
enable = lib.mkOption {
|
enable = (lib.mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
|
}) // {
|
||||||
|
meta = {
|
||||||
|
type = "enable";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
subdomain = lib.mkOption {
|
subdomain = (lib.mkOption {
|
||||||
default = "auth";
|
default = "auth";
|
||||||
type = lib.types.strMatching "[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]";
|
type = lib.types.strMatching "[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]";
|
||||||
|
}) // {
|
||||||
|
meta = {
|
||||||
|
widget = "subdomain";
|
||||||
|
type = "string";
|
||||||
|
regex = "[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]";
|
||||||
|
weight = 0;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
debug = lib.mkOption {
|
debug = (lib.mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
|
}) // {
|
||||||
|
meta = {
|
||||||
|
type = "enable";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user