Merge pull request #8320 from cwoac/mediatomb_interfaces

Allow setting mediatomb interface

+8 -1
+8 -1
nixos/modules/services/misc/mediatomb.nix
··· 230 230 ''; 231 231 }; 232 232 233 + interface = mkOption { 234 + default = ""; 235 + description = '' 236 + A specific interface to bind to. 237 + ''; 238 + }; 239 + 233 240 uuid = mkOption { 234 241 default = "fdfc8a4e-a3ad-4c1d-b43d-a2eedb03a687"; 235 242 description = '' ··· 256 263 after = [ "local-fs.target" "network.target" ]; 257 264 wantedBy = [ "multi-user.target" ]; 258 265 path = [ pkgs.mediatomb ]; 259 - serviceConfig.ExecStart = "${pkgs.mediatomb}/bin/mediatomb -p ${toString cfg.port} ${if cfg.customCfg then "" else "-c ${mtConf}"} -m ${cfg.dataDir}"; 266 + serviceConfig.ExecStart = "${pkgs.mediatomb}/bin/mediatomb -p ${toString cfg.port} ${if cfg.interface!="" then "-e ${cfg.interface}" else ""} ${if cfg.customCfg then "" else "-c ${mtConf}"} -m ${cfg.dataDir}"; 260 267 serviceConfig.User = "${cfg.user}"; 261 268 }; 262 269