I need some help. DLNA functions perfectly on NixOS. Windows 11 and my Android device detect it without any issue. However, my smart TV fails
to recognize miniDLNA on NixOS as a media source.
My Panasonic smart TV, although old, detects all
devices except for NixOS. Could this be due to a firewall port problem?
{ config, pkgs, ... }:
{
# DLNA service: Check if working. Open browser: http://192.168.0.13:8200/
# Cache location: /var/cache/minidlna/ sometimes deleting it clears it
# ------------------------------------------------------------------------
services.minidlna.enable = true;
services.minidlna.settings = {
friendly_name = "NixOS-DLNA";
# https://mylinuxramblings.wordpress.com/2016/02/19/mini-how-to-installing-minidlna-in-ubuntu/
# "A" for audio (eg. media_dir=A,/var/lib/minidlna/music)
# "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)
# "V" for video (eg. media_dir=V,/var/lib/minidlna/videos)
# "PV" for pictures and video (eg. media_dir=PV,/var/lib/minidlna/digital_camera)
media_dir = [
"APV,/mnt/DLNA/" # Master directory, set APV to filter all
# "A,/home/tolga/public/Music/" # Music files are located here
# "P,/home/tolga/public/Pictures/" # Pics
# "V,/home/tolga/public/Vids/" # Vidoes files are here
];
inotify = "yes";
log_level = "error";
announceInterval = 1;
};
users.users.minidlna = {
extraGroups =
[ "users" "samba" "wheel" "tolga" ]; # so minidlna can access the files.
};
networking.firewall = {
enable = false;
allowedTCPPorts = [ 139 445 8096 ];
allowedUDPPorts = [ 137 138 1900 ];
};
}
Any help be appreciated
cheers