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

31 lines
513 B
Nix
Raw Normal View History

2024-07-24 15:49:31 -04:00
{
config,
pkgs,
...
}: let
inherit (config.khepri) rwDataDir;
rwPath = rwDataDir + "/media/radarr";
in {
2024-07-24 15:49:31 -04:00
khepri.compositions."radarr".services."radarr" = {
image = import ./images/radarr.nix pkgs;
restart = "always";
2024-07-24 15:49:31 -04:00
extraHosts = ["lan.nelim.org=10.0.0.130"];
ports = ["7878:7878"];
environment = {
PUID = "1000";
PGID = "1000";
TZ = "America/New_York";
};
volumes = [
"${rwPath}/data:/config"
"/data:/data"
];
2024-07-24 15:49:31 -04:00
cpus = 0.5;
};
}