auth: add meta to all options

This commit is contained in:
Alexander Tomokhov
2025-01-31 14:37:58 +04:00
parent 4c6228d694
commit 70a946cc66

View File

@@ -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";
};
}; };
}; };