nixos/public-inbox: explicit a few more freeform settings
This commit is contained in:
parent
50301d73e9
commit
b6ed3b8f40
|
@ -275,9 +275,8 @@ in
|
||||||
default = {};
|
default = {};
|
||||||
description = lib.mdDoc "public inboxes";
|
description = lib.mdDoc "public inboxes";
|
||||||
type = types.submodule {
|
type = types.submodule {
|
||||||
# Keeping in line with the tradition of unnecessarily specific types, allow users to set
|
# Support both global options like `services.public-inbox.settings.publicinbox.imapserver`
|
||||||
# freeform settings either globally under the `publicinbox` section, or for specific
|
# and inbox specific options like `services.public-inbox.settings.publicinbox.foo.address`.
|
||||||
# inboxes through additional nesting.
|
|
||||||
freeformType = with types; attrsOf (oneOf [ iniAtom (attrsOf iniAtom) ]);
|
freeformType = with types; attrsOf (oneOf [ iniAtom (attrsOf iniAtom) ]);
|
||||||
|
|
||||||
options.css = mkOption {
|
options.css = mkOption {
|
||||||
|
@ -285,12 +284,24 @@ in
|
||||||
default = [];
|
default = [];
|
||||||
description = lib.mdDoc "The local path name of a CSS file for the PSGI web interface.";
|
description = lib.mdDoc "The local path name of a CSS file for the PSGI web interface.";
|
||||||
};
|
};
|
||||||
|
options.imapserver = mkOption {
|
||||||
|
type = with types; listOf str;
|
||||||
|
default = [];
|
||||||
|
example = [ "imap.public-inbox.org" ];
|
||||||
|
description = lib.mdDoc "IMAP URLs to this public-inbox instance";
|
||||||
|
};
|
||||||
options.nntpserver = mkOption {
|
options.nntpserver = mkOption {
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
default = [];
|
default = [];
|
||||||
example = [ "nntp://news.public-inbox.org" "nntps://news.public-inbox.org" ];
|
example = [ "nntp://news.public-inbox.org" "nntps://news.public-inbox.org" ];
|
||||||
description = lib.mdDoc "NNTP URLs to this public-inbox instance";
|
description = lib.mdDoc "NNTP URLs to this public-inbox instance";
|
||||||
};
|
};
|
||||||
|
options.pop3server = mkOption {
|
||||||
|
type = with types; listOf str;
|
||||||
|
default = [];
|
||||||
|
example = [ "pop.public-inbox.org" ];
|
||||||
|
description = lib.mdDoc "POP3 URLs to this public-inbox instance";
|
||||||
|
};
|
||||||
options.wwwlisting = mkOption {
|
options.wwwlisting = mkOption {
|
||||||
type = with types; enum [ "all" "404" "match=domain" ];
|
type = with types; enum [ "all" "404" "match=domain" ];
|
||||||
default = "404";
|
default = "404";
|
||||||
|
|
Loading…
Reference in a new issue