summaryrefslogtreecommitdiffstats
path: root/nixos/modules
diff options
context:
space:
mode:
authorAntoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com>2020-07-18 10:06:59 +0200
committerAntoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>2020-10-08 08:59:48 +0200
commit96d1844746d1fd67f83901730eb7b8a9d3cb7985 (patch)
tree541777f1f42a8c61f61e5ac6c5caf51cc08deb3a /nixos/modules
parent1db9813dd3ccb9d5aa05c61c9fb3bc5b1ab73c7c (diff)
mediatomb/gerbera: Introduce the pcDirectoryHide option
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/misc/mediatomb.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/mediatomb.nix b/nixos/modules/services/misc/mediatomb.nix
index bc7d15458295..e56e9d6e4ba1 100644
--- a/nixos/modules/services/misc/mediatomb.nix
+++ b/nixos/modules/services/misc/mediatomb.nix
@@ -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.";