diff options
Diffstat (limited to 'modules/git.nix')
| -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 { |
