modules.services.nginx.applications.short: init

This commit is contained in:
2025-11-01 17:50:09 +08:00
parent b8b748e529
commit 0f94795841
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
inputs:
{
options.nixos.services.nginx.applications.short = let inherit (inputs.lib) mkOption types; in mkOption
{ type = types.nullOr (types.submodule {}); default = null; };
config = let inherit (inputs.config.nixos.services.nginx.applications) short; in inputs.lib.mkIf (short != null)
{
nixos.services.nginx.https."s.chn.moe".location =
{
"/k".return.return = "302 https://kanggroup.xmu.edu.cn";
};
};
}