2025-07-08 20:14:39 +03:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
|
|
|
|
|
|
cfg = config.ataraxia.containers.media-stack;
|
2025-07-10 18:39:31 +03:00
|
|
|
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 = {
|
|
|
|
lidarr = mkEnableOption "Enable lidarr container";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.lidarr {
|
2025-07-10 18:39:31 +03:00
|
|
|
virtualisation.quadlet.containers.lidarr = {
|
2025-07-08 20:14:39 +03:00
|
|
|
autoStart = true;
|
2025-07-10 18:39:31 +03:00
|
|
|
containerConfig = {
|
|
|
|
# Tags: 2.12.4, version-2.12.4.4658, 2.12.4.4658-ls45
|
|
|
|
image = "docker.io/linuxserver/lidarr@sha256:71fe6d5702691c6ac8961b9b1042fdea1ff833a49c82c5e165346fa88999a48a";
|
|
|
|
pod = pods.media-stack.ref;
|
|
|
|
environments = {
|
|
|
|
PUID = "1000";
|
|
|
|
PGID = "100";
|
|
|
|
TZ = "Europe/Moscow";
|
|
|
|
};
|
|
|
|
volumes = [
|
|
|
|
"${nas-path}/configs/lidarr/config:/config"
|
|
|
|
"${nas-path}/configs/lidarr/custom-services.d:/custom-services.d"
|
|
|
|
"${nas-path}/configs/lidarr/custom-cont-init.d:/custom-cont-init.d"
|
|
|
|
"${nas-path}:/data"
|
|
|
|
];
|
2025-07-08 20:14:39 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|