mediatomb/gerbera: Introduce the pcDirectoryHide option
This commit is contained in:
parent
1db9813dd3
commit
96d1844746
@ -57,13 +57,14 @@ let
|
|||||||
<home>${cfg.dataDir}</home>
|
<home>${cfg.dataDir}</home>
|
||||||
<interface>${cfg.interface}</interface>
|
<interface>${cfg.interface}</interface>
|
||||||
<webroot>${pkg}/share/${name}/web</webroot>
|
<webroot>${pkg}/share/${name}/web</webroot>
|
||||||
|
<pc-directory upnp-hide="${optionYesNo cfg.pcDirectoryHide}"/>
|
||||||
<storage>
|
<storage>
|
||||||
<sqlite3 enabled="yes">
|
<sqlite3 enabled="yes">
|
||||||
<database-file>${name}.db</database-file>
|
<database-file>${name}.db</database-file>
|
||||||
</sqlite3>
|
</sqlite3>
|
||||||
</storage>
|
</storage>
|
||||||
<protocolInfo extend="${optionYesNo cfg.ps3Support}"/>
|
<protocolInfo extend="${optionYesNo cfg.ps3Support}"/>
|
||||||
${lib.optionalString cfg.dsmSupport ''
|
${optionalString cfg.dsmSupport ''
|
||||||
<custom-http-headers>
|
<custom-http-headers>
|
||||||
<add header="X-User-Agent: redsonic"/>
|
<add header="X-User-Agent: redsonic"/>
|
||||||
</custom-http-headers>
|
</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 {
|
user = mkOption {
|
||||||
default = "mediatomb";
|
default = "mediatomb";
|
||||||
description = "User account under which ${name} runs.";
|
description = "User account under which ${name} runs.";
|
||||||
|
Loading…
Reference in New Issue
Block a user