0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos/minidlna: fix tests

This commit is contained in:
bb2020 2022-09-02 22:40:45 +03:00 committed by Alyssa Ross
parent ce609256fb
commit ccd367ae4f

View file

@ -6,25 +6,24 @@ import ./make-test-python.nix ({ pkgs, ... }: {
{ ... }: { ... }:
{ {
imports = [ ../modules/profiles/minimal.nix ]; imports = [ ../modules/profiles/minimal.nix ];
networking.firewall.allowedTCPPorts = [ 8200 ]; services.minidlna.enable = true;
services.minidlna = { services.minidlna.openFirewall = true;
enable = true; services.minidlna.settings = {
loglevel = "error"; log_level = "error";
mediaDirs = [ media_dir = [
"PV,/tmp/stuff" "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 = testScript =