add metadata

This commit is contained in:
Inex Code 2024-08-09 15:00:26 +03:00
parent fc670d8033
commit ef9eff290e

View file

@ -24,6 +24,9 @@ in
description = "Subdomain"; description = "Subdomain";
} // { } // {
meta = { meta = {
type = "string";
regex = "[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]";
default = "git";
widget = "subdomain"; widget = "subdomain";
description = "Subdomain"; description = "Subdomain";
}; };
@ -32,31 +35,68 @@ in
default = "SelfPrivacy git Service"; default = "SelfPrivacy git Service";
type = lib.types.str; type = lib.types.str;
description = "The name displayed in the web interface"; description = "The name displayed in the web interface";
} // {
meta = {
type = "string";
default = "SelfPrivacy git Service";
description = "The name displayed in the web interface";
};
}; };
enableLfs = lib.mkOption { enableLfs = lib.mkOption {
default = true; default = true;
type = lib.types.bool; type = lib.types.bool;
description = "Enable large file storage"; description = "Enable large file storage";
} // {
meta = {
type = "bool";
default = true;
description = "Enable large file storage";
};
}; };
forcePrivate = lib.mkOption { forcePrivate = lib.mkOption {
default = false; default = false;
type = lib.types.bool; type = lib.types.bool;
description = "Force all new repositories to be private"; description = "Force all new repositories to be private";
} // {
meta = {
type = "bool";
default = false;
description = "Force all new repositories to be private";
};
}; };
disableRegistration = lib.mkOption { disableRegistration = lib.mkOption {
default = false; default = false;
type = lib.types.bool; type = lib.types.bool;
description = "Disable registration of new users"; description = "Disable registration of new users";
} // {
meta = {
type = "bool";
default = false;
description = "Disable registration of new users";
};
}; };
requireSigninView = lib.mkOption { requireSigninView = lib.mkOption {
default = false; default = false;
type = lib.types.bool; type = lib.types.bool;
description = "Require signin to view any page"; description = "Require signin to view any page";
} // {
meta = {
type = "bool";
default = false;
description = "Require signin to view any page";
};
}; };
defaultTheme = lib.mkOption { defaultTheme = lib.mkOption {
default = "forgejo-auto"; default = "forgejo-auto";
type = lib.types.enum [ "forgejo-auto" "forgejo-light" "forgejo-dark" "auto" "gitea" "arc-green" ]; type = lib.types.enum [ "forgejo-auto" "forgejo-light" "forgejo-dark" "gitea-auto" "gitea-light" "gitea-dark" ];
description = "The default theme for the gitea instance"; description = "The default theme for the gitea instance";
} // {
meta = {
type = "enum";
default = "forgejo-auto";
description = "The default theme for the gitea instance";
options = [ "forgejo-auto" "forgejo-light" "forgejo-dark" "gitea-auto" "gitea-light" "gitea-dark" ];
};
}; };
}; };