mediatomb/gerbera: Introduce the pcDirectoryHide option

This commit is contained in:
Antoine R. Dumont (@ardumont) 2020-07-18 10:06:59 +02:00 committed by Antoine R. Dumont (@ardumont)
parent 1db9813dd3
commit 96d1844746
No known key found for this signature in database
GPG Key ID: 52E2E9840D10C3B8

View File

@ -57,13 +57,14 @@ let
<home>${cfg.dataDir}</home>
<interface>${cfg.interface}</interface>
<webroot>${pkg}/share/${name}/web</webroot>
<pc-directory upnp-hide="${optionYesNo cfg.pcDirectoryHide}"/>
<storage>
<sqlite3 enabled="yes">
<database-file>${name}.db</database-file>
</sqlite3>
</storage>
<protocolInfo extend="${optionYesNo cfg.ps3Support}"/>
${lib.optionalString cfg.dsmSupport ''
${optionalString cfg.dsmSupport ''
<custom-http-headers>
<add header="X-User-Agent: redsonic"/>
</custom-http-headers>
@ -232,6 +233,14 @@ in {
'';
};
pcDirectoryHide = mkOption {
type = types.bool;
default = true;
description = ''
Whether to list the top-level directory or not (from upnp client standpoint).
'';
};
user = mkOption {
default = "mediatomb";
description = "User account under which ${name} runs.";