Setup bazarr

This commit is contained in:
Nathan McCarty 2023-04-10 14:55:54 -04:00
parent 50e8a7a4a0
commit a7fa8ac061
No known key found for this signature in database
2 changed files with 30 additions and 6 deletions

View File

@ -63,7 +63,8 @@
}; };
# Newer kernel # Newer kernel
boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_2; boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_2;
# Run plex and the like in containers # Run plex and the like in containers, these applications get... a little fucky when run directly
# on nixos
virtualisation.oci-containers.containers = { virtualisation.oci-containers.containers = {
# Configure plex # Configure plex
"plex" = { "plex" = {
@ -89,7 +90,7 @@
volumes = [ "/var/lib/plex:/config" "/mnt/plex:/media" ]; volumes = [ "/var/lib/plex:/config" "/mnt/plex:/media" ];
extraOptions = [ "--device=/dev/dri:/dev/dri" ]; extraOptions = [ "--device=/dev/dri:/dev/dri" ];
}; };
# Configure tatulli # Configure tatulli - Plex Stats
"tautulli" = { "tautulli" = {
image = "lscr.io/linuxserver/tautulli:latest"; image = "lscr.io/linuxserver/tautulli:latest";
environment = { environment = {
@ -101,7 +102,7 @@
volumes = [ "/var/lib/tautulli:/config" ]; volumes = [ "/var/lib/tautulli:/config" ];
dependsOn = [ "plex" ]; dependsOn = [ "plex" ];
}; };
# Configure sabnzbd # Configure sabnzbd - Usenet
"sabnzbd" = { "sabnzbd" = {
image = "lscr.io/linuxserver/sabnzbd:latest"; image = "lscr.io/linuxserver/sabnzbd:latest";
environment = { environment = {
@ -116,7 +117,7 @@
"/mnt/scratch/sabnzbd/download:/incomplete-downloads" "/mnt/scratch/sabnzbd/download:/incomplete-downloads"
]; ];
}; };
# Configure sonarr # Configure sonarr - TV
"sonarr" = { "sonarr" = {
image = "lscr.io/linuxserver/sonarr:latest"; image = "lscr.io/linuxserver/sonarr:latest";
environment = { environment = {
@ -132,7 +133,7 @@
]; ];
dependsOn = [ "sabnzbd" "plex" ]; dependsOn = [ "sabnzbd" "plex" ];
}; };
# Configure radarr # Configure radarr - Movies
"radarr" = { "radarr" = {
image = "lscr.io/linuxserver/radarr:latest"; image = "lscr.io/linuxserver/radarr:latest";
environment = { environment = {
@ -148,7 +149,7 @@
]; ];
dependsOn = [ "sabnzbd" "plex" ]; dependsOn = [ "sabnzbd" "plex" ];
}; };
# Configure lidarr # Configure lidarr - Music
"lidarr" = { "lidarr" = {
image = "lscr.io/linuxserver/lidarr:latest"; image = "lscr.io/linuxserver/lidarr:latest";
environment = { environment = {
@ -164,6 +165,18 @@
]; ];
dependsOn = [ "sabnzbd" ]; dependsOn = [ "sabnzbd" ];
}; };
# Configure bazarr - Subtitles
"bazarr" = {
image = "lscr.io/linuxserver/bazarr:latest";
environment = {
"PUID" = "1000";
"PGID" = "1000";
"TZ" = "America/New_York";
};
ports = [ "6767:6767" ];
volumes = [ "/var/lib/bazarr:/config" "/mnt/plex:/media" ];
dependsOn = [ "plex" ];
};
}; };
# Make the containers depend on their mounts # Make the containers depend on their mounts
systemd.services = { systemd.services = {

View File

@ -162,6 +162,17 @@
''; '';
}; };
}; };
"bazarr.mccarty.io" = {
forceSSL = true;
useACMEHost = "mccarty.io";
locations."/" = {
proxyPass = "http://100.121.150.78:6767";
extraConfig = ''
allow 100.64.0.0/10;
deny all;
'';
};
};
"calibre.mccarty.io" = { "calibre.mccarty.io" = {
forceSSL = true; forceSSL = true;
useACMEHost = "mccarty.io"; useACMEHost = "mccarty.io";