36 lines
931 B
Nix
Raw Normal View History

2025-07-08 20:14:39 +03:00
{ config, lib, ... }:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.ataraxia.containers.media-stack;
pods = config.virtualisation.quadlet.pods;
2025-07-08 20:14:39 +03:00
nas-path = "/media/nas/media-stack";
in
{
options.ataraxia.containers.media-stack = {
radarr = mkEnableOption "Enable radarr container";
};
config = mkIf cfg.radarr {
virtualisation.quadlet.containers.radarr = {
2025-07-08 20:14:39 +03:00
autoStart = true;
containerConfig = {
# Tags: 5.26.2, version-5.26.2.10099, 5.26.2.10099-ls276
image = "docker.io/linuxserver/radarr@sha256:07a474b61394553e047ad43a1a78c1047fc99be0144c509dd91e3877f402ebcb";
pod = pods.media-stack.ref;
environments = {
PUID = "1000";
PGID = "100";
UMASK = "002";
TZ = "Europe/Moscow";
};
volumes = [
"${nas-path}/configs/radarr:/config"
"${nas-path}:/data"
];
2025-07-08 20:14:39 +03:00
};
};
};
}