From db8cb61d4a13fa861440379f4788a6524d880467 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Thu, 15 Feb 2024 06:27:47 +0100 Subject: init code.nomath.org --- apps/cgit/appspec.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 apps/cgit/appspec.nix (limited to 'apps/cgit/appspec.nix') diff --git a/apps/cgit/appspec.nix b/apps/cgit/appspec.nix new file mode 100644 index 0000000..8ea967c --- /dev/null +++ b/apps/cgit/appspec.nix @@ -0,0 +1,28 @@ +{ fysilib, lib, ... }: { + description = "cgit"; + endOfLife = null; + options = { + domain = lib.mkOption { + description = "Domain of cgit instance"; + type = fysilib.types.fqdn; + }; + repositories = lib.mkOption { + type = fysilib.types.attrsOf (fysilib.types.submodule { + options = { + name = lib.mkOption { + default = null; + type = fysilib.types.pathComponent; + }; + description = lib.mkOption { + default = null; + type = fysilib.types.nullOr fysilib.types.str; + }; + }; + }); + }; + settings = lib.mkOption { + type = lib.types.attrsOf (lib.types.oneOf [ lib.types.bool lib.types.int lib.types.str ]); + default = { }; + }; + }; +} -- cgit v1.2.3