summaryrefslogtreecommitdiffstats
path: root/modules/git.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-02 12:28:32 +0100
committertv <tv@krebsco.de>2026-11-02 12:28:32 +0100
commit92f7b86df6b4419468a0cd0be4f0d23fad716b77 (patch)
treeaac4ad6f28925ed39a1f4c78266ab0b73dcfce14 /modules/git.nix
parent0eb8a3c285d00e15e0706b48c1b4a763892ef63b (diff)
git: admit lua about filters
Diffstat (limited to 'modules/git.nix')
-rw-r--r--modules/git.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/git.nix b/modules/git.nix
index 56daf19..5237a4d 100644
--- a/modules/git.nix
+++ b/modules/git.nix
@@ -122,7 +122,13 @@ let
# A setting's value of `null` means cgit's default should be used.
options = {
about-filter = mkOption {
- type = types.nullOr types.package;
+ type = lib.types.nullOr (lib.types.oneOf [
+ lib.types.package
+ (lib.types.addCheck lib.types.str
+ (s:
+ lib.hasPrefix "lua:" s &&
+ lib.types.package.check (lib.removePrefix "lua:" s)))
+ ]);
default = null;
};
cache-root = mkOption {