config/modules/nixos/services/dlna/default.nix

32 lines
555 B
Nix
Raw Normal View History

2024-05-23 20:26:30 +00:00
{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.services.dlna;
in {
options.services.dlna = with types; {
enable = mkBoolOpt false "Enable MiniDLNA service";
};
config = mkIf cfg.enable {
services.minidlna = {
enable = true;
openFirewall = true;
settings = {
notify_interval = 60;
2024-09-23 19:22:17 -04:00
friendly_name = "workstation";
media_dir = ["A,/home/zoey/Music"];
2024-05-23 20:26:30 +00:00
inotify = "yes";
};
};
users.users.minidlna = {
extraGroups = ["users"];
};
};
}