From 96d1844746d1fd67f83901730eb7b8a9d3cb7985 Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" Date: Sat, 18 Jul 2020 10:06:59 +0200 Subject: [PATCH] mediatomb/gerbera: Introduce the pcDirectoryHide option --- nixos/modules/services/misc/mediatomb.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 ${cfg.dataDir} ${cfg.interface} ${pkg}/share/${name}/web + ${name}.db - ${lib.optionalString cfg.dsmSupport '' + ${optionalString cfg.dsmSupport '' @@ -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.";