29 lines
551 B
Nix
Executable File
29 lines
551 B
Nix
Executable File
{
|
|
lib,
|
|
config,
|
|
namespace,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.${namespace}.services.dispatcharr;
|
|
in
|
|
{
|
|
imports = [
|
|
(lib.${namespace}.mkContainerService {
|
|
inherit config;
|
|
name = "dispatcharr";
|
|
image = "ghcr.io/dispatcharr/dispatcharr";
|
|
internalPort = 9191;
|
|
extraOptions = [ "--device=/dev/dri" ];
|
|
volumes = [
|
|
"${cfg.configDir}/dispatcharr:/data"
|
|
"${cfg.dataDir}/movies:/movies"
|
|
"${cfg.dataDir}/tv:/tv"
|
|
];
|
|
environment = {
|
|
DISPATCHARR_ENV = "aio";
|
|
};
|
|
})
|
|
];
|
|
}
|