Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 299fbcbb8b59
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 274e095f761b
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jan 19, 2020

  1. minidlna: provide configuration option for announce interval

    Signed-off-by: Markus S. Wamser <github-dev@mail2013.wamser.eu>
    wamserma committed Jan 19, 2020
    Copy the full SHA
    587b451 View commit details

Commits on Jan 27, 2020

  1. Merge pull request #78025 from wamserma/minidlna-interval-backport

    minidlna: provide configuration option for announce interval (backport)
    infinisil authored Jan 27, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    274e095 View commit details
Showing with 17 additions and 0 deletions.
  1. +17 −0 nixos/modules/services/networking/minidlna.nix
17 changes: 17 additions & 0 deletions nixos/modules/services/networking/minidlna.nix
Original file line number Diff line number Diff line change
@@ -64,6 +64,22 @@ in
'';
};

services.minidlna.announceInterval = mkOption {
type = types.int;
default = 895;
description =
''
The interval between announces (in seconds).
By default miniDLNA will announce its presence on the network
approximately every 15 minutes.
Many people prefer shorter announce intervals (e.g. 60 seconds)
on their home networks, especially when DLNA clients are
started on demand.
'';
};

services.minidlna.config = mkOption {
type = types.lines;
description = "The contents of MiniDLNA's configuration file.";
@@ -82,6 +98,7 @@ in
${concatMapStrings (dir: ''
media_dir=${dir}
'') cfg.mediaDirs}
notify_interval=${toString cfg.announceInterval}
'';

users.users.minidlna = {