From 70a946cc6659deb37516037b4591399758e97235 Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Fri, 31 Jan 2025 14:37:58 +0400 Subject: [PATCH] auth: add meta to all options --- sp-modules/auth/module.nix | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/sp-modules/auth/module.nix b/sp-modules/auth/module.nix index c6f033c..f102434 100644 --- a/sp-modules/auth/module.nix +++ b/sp-modules/auth/module.nix @@ -53,17 +53,32 @@ let in { options.selfprivacy.modules.auth = { - enable = lib.mkOption { + enable = (lib.mkOption { default = false; type = lib.types.bool; + }) // { + meta = { + type = "enable"; + }; }; - subdomain = lib.mkOption { + subdomain = (lib.mkOption { default = "auth"; 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; type = lib.types.bool; + }) // { + meta = { + type = "enable"; + }; }; };