diff --git a/nixos/modules/services/misc/mediatomb.nix b/nixos/modules/services/misc/mediatomb.nix index 9d73a64be91..9e5a0463faa 100644 --- a/nixos/modules/services/misc/mediatomb.nix +++ b/nixos/modules/services/misc/mediatomb.nix @@ -66,9 +66,8 @@ let ''; configText = optionalString (! cfg.customCfg) '' - - - ${cfg.interface} + + @@ -268,16 +267,19 @@ in { }; user = mkOption { + type = types.str; default = "mediatomb"; description = "User account under which ${name} runs."; }; group = mkOption { + type = types.str; default = "mediatomb"; description = "Group account under which ${name} runs."; }; port = mkOption { + type = types.int; default = 49152; description = '' The network port to listen on. @@ -285,6 +287,7 @@ in { }; interface = mkOption { + type = types.str; default = ""; description = '' A specific interface to bind to. @@ -292,6 +295,7 @@ in { }; uuid = mkOption { + type = types.str; default = "fdfc8a4e-a3ad-4c1d-b43d-a2eedb03a687"; description = '' A unique (on your network) to identify the server by. @@ -335,7 +339,7 @@ in { after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; serviceConfig.ExecStart = "${binaryCommand} --port ${toString cfg.port} ${interfaceFlag} ${configFlag} --home ${cfg.dataDir}"; - serviceConfig.User = "${cfg.user}"; + serviceConfig.User = cfg.user; }; users.groups = optionalAttrs (cfg.group == "mediatomb") { @@ -346,7 +350,7 @@ in { mediatomb = { isSystemUser = true; group = cfg.group; - home = "${cfg.dataDir}"; + home = cfg.dataDir; createHome = true; description = "${name} DLNA Server User"; };