feat(host/faunus-ater): setup lidarr

This commit is contained in:
Malte Tammena 2024-02-26 15:59:19 +01:00
parent 62483472b5
commit 3c4d91c122
3 changed files with 47 additions and 2 deletions

View file

@ -19,6 +19,15 @@ in {
# Radarr for the movies
services.radarr = {
enable = true;
package = pkgs.radarr.overrideAttrs (old: let
version = lib.warnIfNot (old.version == "5.2.6.8376") "Lidarr was updated!" "5.3.6.8612";
in {
inherit version;
src = pkgs.fetchurl {
url = "https://github.com/Radarr/Radarr/releases/download/v${version}/Radarr.master.${version}.linux-core-x64.tar.gz";
sha256 = "sha256-oZI2nvxvxOiv9F9c2AaP9hEBVd3kV4tjuEmvaR5V0Lc=";
};
});
group = "media";
dataDir = "/data/dirty/radarr";
};
@ -30,6 +39,22 @@ in {
dataDir = "/data/dirty/sonarr";
};
# Lidarr for music
services.lidarr = {
enable = true;
package = pkgs.lidarr.overrideAttrs (old: let
version = lib.warnIfNot (old.version == "2.0.7.3849") "Lidarr was updated!" "2.1.7.4030";
in {
inherit version;
src = pkgs.fetchurl {
url = "https://github.com/lidarr/Lidarr/releases/download/v${version}/Lidarr.master.${version}.linux-core-x64.tar.gz";
sha256 = "sha256-njTaQIi15k0+8tnuIO+waRmSE+BAG46ln+qzesFfI0E=";
};
});
group = "media";
dataDir = "/data/dirty/lidarr";
};
# Bazarr for subtitles
services.bazarr = {
enable = true;
@ -137,6 +162,12 @@ in {
proxyWebsockets = true;
};
};
"lidarr.tammena.me" = withPreset "lidarr" {
locations."/" = {
proxyPass = "http://127.0.0.1:8686";
proxyWebsockets = true;
};
};
"bazarr.tammena.me" = withPreset "bazarr" {
locations."/" = {
proxyPass = "http://127.0.0.1:${builtins.toString config.services.bazarr.listenPort}";
@ -172,6 +203,7 @@ in {
in {
certificate-key-radarr-tammena-me = conf;
certificate-key-sonarr-tammena-me = conf;
certificate-key-lidarr-tammena-me = conf;
certificate-key-bazarr-tammena-me = conf;
certificate-key-prowlarr-tammena-me = conf;
certificate-key-downloadarr-tammena-me = conf;

View file

@ -24,6 +24,7 @@ certificate-key-downloadarr-tammena-me: ENC[AES256_GCM,data:BqXzsbgq1Ir9jNFONg4Y
certificate-key-webdav-tammena-me: ENC[AES256_GCM,data:XdX1uSK5H/8SnqrLraTEY++2a5YUy5H67XM+7ap2F7Y6bShxHWTUrb0MK/d/ZX5SM9F1NCchPyJPeI2gFCqxVWkFmvt6b4q3TyleLX3LCAHHcESvwc3HCNiMs4ceFPlHheJRzc5dExoGFZ34ARYd2zaIPvWVcsN06XhaoShjVUEcD7EOrzZL57GTS6Gx2RbTfXn/eqXS8wWpFSIZiGk7ZLJYjyS29+NUIQue/UZU4ygbmZfMe5tDDshRxA0gVg7RVBVF5hcyaanSDZ5OIVPXC+NdbpNKOKcFCJJp47ZZvqBcYoKNCEmvS6gt8j22MqbFCE5Kgb1fe9b/vqSikDDoWygQdXhopX6jPKBGbLCNltnGwhs8xFeoU1INDAKOTqbC7hoT90QZwzIQMCxPIkQ=,iv:Fz2uYJnE2Y5cBzqDuKfAKRiHS7grN9QMEI0ZJdBO/2c=,tag:p+gBcWuOpNy0/IsUmRpEuQ==,type:str]
certificate-key-bazarr-tammena-me: ENC[AES256_GCM,data:H8dL0YydAMx+Azd0xpQ80ASkEFTlMlm0tIntMMbdMImJRet5/81Wfhu+hFyRKJpoYadyKqrNq2SeWEURUU2g7UtsjB6G8nCBeszdaeHe/7pdgkCe7LBW5tQWKtnYKkS3vn3Vz27i+6+NO+U+RhR7w2YaZZBwsTBy3976xGvQVjQ0Yn36kkoOvDpVEmdJyXexzgNZMnR/avFk2klwbf/LBPFme9RFylp/c02QvOgK8au3nWueYjDsKbvOobABrw8oqp5LF2i0R1vz4WTvK4LhNag6JMW/fdal9dB9QpmpC3CphVo0bJThlDbooc7qo+PiT2I1tNXCuPrNWGRyZ7WZ6iKcqKma8o+CzvRZoUuB80PjkNK6dvWF/i+CJRnQIZtHIe6xqGhHleRSo9AmRg8=,iv:DMPOGFijuiIEC9QBlb1DJynjq50H1rwpUUqDwaGSgQ8=,tag:vYFrzTvvCsYW1blobzNcbA==,type:str]
certificate-key-prowlarr-tammena-me: ENC[AES256_GCM,data:AeiJMufnFh3EDjKnkPz5S+ScxW8U9AdlLo4q8jN1r3CdVF+mp7TrYsDK//QJiTzyJkzQN4TVNj27ioUt0IQtHrlLbI83wbgZeeMtYSKxXt8PnrSnQOhZYQstXhqcyax6z2uJf0xkecSFtrUW8ZngM9PBr8T2BzcXv8TXR/tBP3qB8np+cyn8JvKbuVR9HZQO5HulXm2ZxCe0C4o+TANntZhvbJBbgihAOSukToNewPhzml7h2bLG5iit9LisdWOxihuqall5R2kE2HBax9nbK9Q1xI8y0A8jRxB0NMNyCMYUQ0eEgLCorNgalX1u9dE5QEPGbdLj3Bs2YfqHqnX6FZNDz/YWkSbEV6KIfqXFESMr5M59h1zhYZRc8f9mmHWitR0FZtkqZT62fb1fCW8=,iv:Cr2nI1qZWqSCkzDaeAwvaot11pOz6VYR+j07LJEMr7E=,tag:7hI+giA6nNbBNZ2QS9yBOg==,type:str]
certificate-key-lidarr-tammena-me: ENC[AES256_GCM,data:vkoBDdBgHkdA9CmE6Ld5Tav+Q10fssGKKcbnRNYuS0Nh8I7DiBb8Md5yab33KNV9ZL4a/0A3VTPvpJs76GPFRkxVcwTTbcCl6O5oxTArvfc4SOtut7sC5tc3ReXMkJnKfHfwiJas9SW7ag01rRamgD9OUZ913qlKxmDO0RrhX8kjgAPvUiRPtpLyFPR7QypzP/PXHW7t70gtZFmIrwTbIFMTdR6bBMcyTA4S8qwSIu6DnTIlaJwIdELqmr5WIK8GzsXCowG+hlL0mImSSnoidwzygjrybSdBUyDbDIv9ga9uALO6UtsJfYLIiV9t5Yv+5rR/Q6i4xnCAZpqwZ0Y/sgELIMExxxSslBXrE7VRiG3F0ZqR2S+o2rYVCNlcmKpwZC3caZuj4pCDHtLl/+M=,iv:NsUI/VwzYqk/ovysBgvlVRKIRBt88iZ4AR44EEfN2cE=,tag:uw5jlgF6SP7w4DL0Zy6TMw==,type:str]
sops:
kms: []
gcp_kms: []
@ -39,8 +40,8 @@ sops:
ZzFxdmlXaTRCY2tUZndBSDlNeUVROVUKH1CxbcdwHR3ELn9YlGvO6YbGGg++wGZv
97ez/ErXEOq/6IF6HzV3I9BsVV4WCJI2VTP8Lbiwt59qg5riH7CGJQ==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-02-16T12:47:47Z"
mac: ENC[AES256_GCM,data:HU2yxjvOnEA2Smgpx/vmnxLDZphBcb5HJQVHBMdPJw3fc/Bw9zYaCHiZiCI0WXYZhzRm+83JEb5i9obPa8BGk91ShnDZGlFd/WDTHztZu5sRJBlz2f7P4OagSwf4qfGop1MeZIFIdyCiZ7Btjg3HE0SauvCrgfr4/kPyn0U30xc=,iv:HVAkXozKljqLlm5oN4UfiHmDkLu0E8DRjFxsdenBTD4=,tag:OQJ+k1RoTCXfng4kWcaIrQ==,type:str]
lastmodified: "2024-02-26T14:08:30Z"
mac: ENC[AES256_GCM,data:wBQa8JTURhGsFrvxwO2YBke9aE5jl6+SIkhEFkKkMPE9tO7mquOnItLWQsHEO3gcmgeKZ4fqgSGRIF3IkPBdgmocudJ0LnrAeC4CJ6lz4VRFn9cml2CIkn1HD8RInXFYq8NP3dJ1ytEJg68QrRlyTj7CMrMnImquEsK2Po2UyL4=,iv:ef3/cS4bQOjZEg/LEDZctDzTayWfDJUSeCNL+MFT86c=,tag:o4JYpryUgBx16hcVK6A0wg==,type:str]
pgp:
- created_at: "2023-11-06T16:58:30Z"
enc: |

View file

@ -0,0 +1,12 @@
-----BEGIN CERTIFICATE-----
MIIBuDCCAV+gAwIBAgIUMJxYvlyDSGvw39W/IjDVo9JoMZMwCgYIKoZIzj0EAwIw
FTETMBEGA1UEAwwKTXkgSG9tZSBDQTAeFw0yNDAyMjYxNDA4MjlaFw0yNTAyMjUx
NDA4MjlaMBExDzANBgNVBAMMBiouaG9tZTBZMBMGByqGSM49AgEGCCqGSM49AwEH
A0IABGYp+ZGJgMW35B492ReX8DiFMfQpy1XzBrtBLG3+nX+hsojLBMlyGRGHOmFQ
1F1zWPYLroB0vCY81ileD17PlsCjgZAwgY0wCwYDVR0PBAQDAgXgMBMGA1UdJQQM
MAoGCCsGAQUFBwMBMCkGA1UdEQQiMCCCEWxpZGFyci50YW1tZW5hLm1lggtsaWRh
cnIuaG9tZTAdBgNVHQ4EFgQUN+2kfI3XBxnpUCzw3XjxLynXsAIwHwYDVR0jBBgw
FoAUAPrcD9smsvgt1yQ7GbIirWWZT6swCgYIKoZIzj0EAwIDRwAwRAIgYfogRP3N
UoGN0zE1Nw0jou0bEU5c0cfgQ3SY5PkSh0ACIBd1GU8vwZ8jlq3qBH7OzTOLXNFT
EZSIxZbf9qucVMJK
-----END CERTIFICATE-----