nixos-configs/devices/nos/modules/docker/media/bazarr/compose.nix

37 lines
599 B
Nix
Raw Normal View History

2024-07-24 15:49:31 -04:00
{
config,
pkgs,
...
}: let
inherit (config.khepri) rwDataDir;
rwPath = rwDataDir + "/media/bazarr";
in {
khepri.compositions."bazarr" = {
networks.proxy_net = {external = true;};
2024-05-18 00:04:26 -04:00
services."bazarr" = {
image = import ./images/bazarr.nix pkgs;
restart = "always";
environment = {
PUID = "1000";
PGID = "1000";
TZ = "America/New_York";
};
ports = [
"6767:6767"
];
volumes = [
"${rwPath}/data:/config"
"/data:/data"
];
cpus = 2;
networks = ["proxy_net"];
};
};
}