@@ -95,6 +95,22 @@ in
9595 '';
9696 };
9797
98+ services.minidlna.announceInterval = mkOption {
99+ type = types.int;
100+ default = 895;
101+ description =
102+ ''
103+ The interval between announces (in seconds).
104+
105+ By default miniDLNA will announce its presence on the network
106+ approximately every 15 minutes.
107+
108+ Many people prefer shorter announce intervals (e.g. 60 seconds)
109+ on their home networks, especially when DLNA clients are
110+ started on demand.
111+ '';
112+ };
113+
98114 services.minidlna.config = mkOption {
99115 type = types.lines;
100116 description =
@@ -144,6 +160,7 @@ in
144160 ${concatMapStrings (dir: ''
145161 media_dir=${dir}
146162 '') cfg.mediaDirs}
163+ notify_interval=${toString cfg.announceInterval}
147164 ${cfg.extraConfig}
148165 '';
149166