add lidarr

This commit is contained in:
Ingolf Wagner 2024-08-05 16:56:42 +02:00
parent 46a2b0cfa1
commit 8a2a37c45c
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
4 changed files with 31 additions and 20 deletions

View file

@ -10,14 +10,11 @@
}: }:
let let
hosts = { hosts = {
mobi = "10.23.42.23";
sterni = "10.23.42.24";
bobi = "10.23.42.25"; bobi = "10.23.42.25";
pepe = "10.23.42.26";
cream = "10.23.42.27";
chungus = "10.23.42.28";
cherry = "10.23.42.29"; cherry = "10.23.42.29";
robi = "10.23.42.111"; chungus = "10.23.42.28";
cream = "10.23.42.27";
mobi = "10.23.42.23";
orbi = "10.23.42.100"; orbi = "10.23.42.100";
}; };
subDomains = { subDomains = {
@ -25,21 +22,9 @@ let
"transmission2.orbi" = hosts.orbi; "transmission2.orbi" = hosts.orbi;
"sonarr.orbi" = hosts.orbi; "sonarr.orbi" = hosts.orbi;
"radarr.orbi" = hosts.orbi; "radarr.orbi" = hosts.orbi;
"lidarr.orbi" = hosts.orbi;
"prowlarr.orbi" = hosts.orbi; "prowlarr.orbi" = hosts.orbi;
"photoprism.orbi" = hosts.orbi; "photoprism.orbi" = hosts.orbi;
# robi
"grafana.robi" = hosts.robi;
"loki.robi" = hosts.robi;
"prometheus.robi" = hosts.robi;
"sync.robi" = hosts.robi;
"transmission.robi" = hosts.robi;
"transmission2.robi" = hosts.robi;
"sonarr.robi" = hosts.robi;
"radarr.robi" = hosts.robi;
"tdarr.robi" = hosts.robi;
"prowlarr.robi" = hosts.robi;
"jellyseerr.robi" = hosts.robi;
"unmanic.robi" = hosts.robi;
# chungus # chungus
"de.tts.chungus" = hosts.chungus; "de.tts.chungus" = hosts.chungus;
"en.tts.chungus" = hosts.chungus; "en.tts.chungus" = hosts.chungus;

View file

@ -59,6 +59,7 @@
components.nixos.boot.enable = true; components.nixos.boot.enable = true;
components.nixos.boot.kernelModules = [ "e1000e" ]; components.nixos.boot.kernelModules = [ "e1000e" ];
components.nixos.boot.tor.enable = false;
components.monitor.enable = true; components.monitor.enable = true;
components.monitor.opentelemetry.receiver.endpoint = "0.0.0.0:4317"; components.monitor.opentelemetry.receiver.endpoint = "0.0.0.0:4317";

View file

@ -34,6 +34,12 @@ in
dst = "/media/arr/sonarr"; dst = "/media/arr/sonarr";
delete = false; delete = false;
}; };
lidarr = {
sshKeyPath = config.clan.core.facts.services.rbackup.secret."ssh.rbackup.id_ed25519".path;
src = "root@orbi.${tld}:/media/arr/lidarr";
dst = "/media/arr/lidarr";
delete = false;
};
}; };

View file

@ -1,6 +1,6 @@
{ config, ... }: { config, ... }:
{ {
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 7878 8989 ]; networking.firewall.interfaces.wg0.allowedTCPPorts = [ 7878 8989 8686 ];
# download series # download series
services.sonarr = { services.sonarr = {
@ -16,6 +16,13 @@
user = "media"; user = "media";
}; };
# download music
services.lidarr = {
enable = true;
group = "media";
user = "media";
};
# better indexer apis # better indexer apis
services.prowlarr = { services.prowlarr = {
enable = true; enable = true;
@ -59,6 +66,18 @@
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
"lidarr.${config.networking.hostName}.private" = {
serverAliases = [ "lidarr.ingolf-wagner.de" ];
extraConfig = ''
allow ${config.tinc.private.subnet};
allow ${config.wireguard.wg0.subnet};
deny all;
'';
locations."/" = {
proxyPass = "http://localhost:8686";
proxyWebsockets = true;
};
};
"prowlarr.${config.networking.hostName}.private" = { "prowlarr.${config.networking.hostName}.private" = {
extraConfig = '' extraConfig = ''
allow ${config.tinc.private.subnet}; allow ${config.tinc.private.subnet};