55 lines
1.7 KiB
Nix
Raw Normal View History

2023-03-23 01:58:10 +03:00
{ config, lib, pkgs, ... }:
let
backend = config.virtualisation.oci-containers.backend;
nas-path = "/media/nas/media-stack";
in {
2022-04-04 14:53:16 +03:00
virtualisation.oci-containers.containers.lidarr = {
autoStart = true;
environment = {
2023-03-23 01:58:10 +03:00
PUID = "1000";
PGID = "100";
2022-04-04 14:53:16 +03:00
TZ = "Europe/Moscow";
2023-03-23 01:58:10 +03:00
scriptInterval = "15m";
enableAudioScript = "true";
enableVideoScript = "false";
# enableVideoScript = "true";
# videoDownloadTag = "video";
configureLidarrWithOptimalSettings = "true";
searchSort = "date";
audioFormat = "native";
audioBitrate = "lossless";
requireQuality = "true";
enableReplaygainTags = "true";
audioLyricType = "both";
# dlClientSource = "both";
dlClientSource = "tidal";
# arlToken = "Token_Goes_Here";
tidalCountryCode = "AR";
addDeezerTopArtists = "false";
addDeezerTopAlbumArtists = "false";
addDeezerTopTrackArtists = "false";
topLimit = "10";
addRelatedArtists = "false";
numberOfRelatedArtistsToAddPerArtist = "5";
lidarrSearchForMissing = "true";
addFeaturedVideoArtists = "false";
youtubeSubtitleLanguage = "en,ru";
# webHook = "";
enableQueueCleaner = "true";
matchDistance = "5";
enableBeetsTagging = "true";
beetsMatchPercentage = "90";
retryNotFound = "90";
2022-04-04 14:53:16 +03:00
};
2023-03-23 01:58:10 +03:00
extraOptions = [ "--pod=media-stack" ];
image = "docker.io/randomninjaatk/lidarr-extended:latest";
2022-04-04 14:53:16 +03:00
volumes = [
2023-03-23 01:58:10 +03:00
"${nas-path}/configs/lidarr:/config"
"${nas-path}/torrents/music:/downloads"
"${nas-path}/torrents/lidarr-extended-downloads:/downloads-lidarr-extended"
"${nas-path}/media/music:/music"
"${nas-path}/media/music-videos:/music-videos"
2022-04-04 14:53:16 +03:00
];
};
2022-05-03 19:02:14 +03:00
}