Merge pull request #207693 from tazjin/fix-public-inbox

nixos/public-inbox: fix incorrectly restrictive option type
This commit is contained in:
Ryan Lahfa 2022-12-26 21:25:05 +01:00 committed by GitHub
commit b2b06a2677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -275,7 +275,11 @@ in
default = {};
description = lib.mdDoc "public inboxes";
type = types.submodule {
freeformType = with types; /*inbox name*/attrsOf (/*inbox option name*/attrsOf /*inbox option value*/iniAtom);
# Keeping in line with the tradition of unnecessarily specific types, allow users to set
# freeform settings either globally under the `publicinbox` section, or for specific
# inboxes through additional nesting.
freeformType = with types; attrsOf (oneOf [ iniAtom (attrsOf iniAtom) ]);
options.css = mkOption {
type = with types; listOf str;
default = [];