mediatomb/gerbera: Introduce the pcDirectoryHide option
This commit is contained in:
parent
1db9813dd3
commit
96d1844746
1 changed files with 10 additions and 1 deletions
|
@ -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.";
|
||||
|
|
Loading…
Reference in a new issue