diff options
| author | tv <tv@krebsco.de> | 2026-11-02 12:28:32 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-02 12:28:32 +0100 |
| commit | 92f7b86df6b4419468a0cd0be4f0d23fad716b77 (patch) | |
| tree | aac4ad6f28925ed39a1f4c78266ab0b73dcfce14 | |
| parent | 0eb8a3c285d00e15e0706b48c1b4a763892ef63b (diff) | |
git: admit lua about filters
| -rw-r--r-- | modules/git.nix | 8 |
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 { |
