diff options
author | bb2020 <bb2020@users.noreply.github.com> | 2022-09-02 22:40:45 +0300 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-09-04 09:07:40 +0000 |
commit | ccd367ae4fcaa65975a140482fa411ffbf85cbe3 (patch) | |
tree | 36bb55af6530b412670cdd01fe41994f24dddf23 /nixos/tests/minidlna.nix | |
parent | ce609256fbada1969c5b9e499b2b233d49afc0ee (diff) |
nixos/minidlna: fix tests
Diffstat (limited to 'nixos/tests/minidlna.nix')
-rw-r--r-- | nixos/tests/minidlna.nix | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/nixos/tests/minidlna.nix b/nixos/tests/minidlna.nix index 76039b0bb42c5..32721819634e3 100644 --- a/nixos/tests/minidlna.nix +++ b/nixos/tests/minidlna.nix @@ -6,25 +6,24 @@ import ./make-test-python.nix ({ pkgs, ... }: { { ... }: { imports = [ ../modules/profiles/minimal.nix ]; - networking.firewall.allowedTCPPorts = [ 8200 ]; - services.minidlna = { - enable = true; - loglevel = "error"; - mediaDirs = [ - "PV,/tmp/stuff" + services.minidlna.enable = true; + services.minidlna.openFirewall = true; + services.minidlna.settings = { + log_level = "error"; + media_dir = [ + "PV,/tmp/stuff" + ]; + friendly_name = "rpi3"; + root_container = "B"; + notify_interval = 60; + album_art_names = [ + "Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg" + "AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg" + "Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg" ]; - friendlyName = "rpi3"; - rootContainer = "B"; - extraConfig = - '' - album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg - album_art_names=AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg - album_art_names=Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg - notify_interval=60 - ''; }; }; - client = { ... }: { }; + client = { ... }: { }; }; testScript = |