Use nixpkgs' mediatomb and change served directories
This commit is contained in:
parent
dedea5399a
commit
a74f230db3
1 changed files with 9 additions and 7 deletions
|
@ -1,20 +1,22 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.mediatomb = {
|
||||
enable = true;
|
||||
# FIXME remove when fixed
|
||||
package =
|
||||
(builtins.getFlake "github:NixOs/nixpkgs/3ffbbdbac0566a0977da3d2657b89cbcfe9a173b")
|
||||
.legacyPackages.${pkgs.stdenv.system}.gerbera;
|
||||
openFirewall = true;
|
||||
serverName = "Sisko";
|
||||
mediaDirectories = [
|
||||
{
|
||||
path = "/mnt/hd/torrent";
|
||||
path = "/mnt/hd/movies";
|
||||
recursive = true;
|
||||
}
|
||||
{
|
||||
path = "/mnt/hd/series";
|
||||
recursive = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
users.users.mediatomb.extraGroups = [ "transmission" ];
|
||||
users.users.mediatomb.extraGroups = [
|
||||
"radarr"
|
||||
"sonarr"
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue