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

33 lines
523 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 {
2024-07-24 15:49:31 -04:00
khepri.compositions."bazarr".services."bazarr" = {
image = import ./images/bazarr.nix pkgs;
2024-05-18 00:04:26 -04:00
restart = "always";
environment = {
PUID = "1000";
PGID = "1000";
TZ = "America/New_York";
};
2024-07-24 15:49:31 -04:00
extraHosts = ["lan.nelim.org=10.0.0.130"];
2024-05-18 00:04:26 -04:00
ports = [
"6767:6767"
];
2024-05-18 00:04:26 -04:00
volumes = [
"${rwPath}/data:/config"
"/data:/data"
];
2024-07-24 15:49:31 -04:00
cpus = 2;
};
}