nixos-configs/devices/nas/modules/arion/media/sonarr/compose.nix
matt1432 ef1cdbf86f
All checks were successful
Discord / discord commits (push) Has been skipped
feat(arion): migrate all media docker containers
2024-02-28 22:22:14 -05:00

27 lines
481 B
Nix

{config, ...}: let
inherit (config.arion) rwDataDir;
rwPath = rwDataDir + "/media/sonarr";
in {
arion.projects."sonarr"."sonarr" = {
image = ./images/sonarr.nix;
restart = "always";
ports = ["8989:8989"];
environment = {
PUID = "1000";
PGID = "1000";
TZ = "America/New_York";
};
volumes = [
"${rwPath}/data:/config"
"/data:/data"
];
extraOptions = {
deploy.resources.limits.cpus = "0.5";
};
};
}