Setup bazarr
This commit is contained in:
parent
50e8a7a4a0
commit
a7fa8ac061
|
@ -63,7 +63,8 @@
|
|||
};
|
||||
# Newer kernel
|
||||
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 = {
|
||||
# Configure plex
|
||||
"plex" = {
|
||||
|
@ -89,7 +90,7 @@
|
|||
volumes = [ "/var/lib/plex:/config" "/mnt/plex:/media" ];
|
||||
extraOptions = [ "--device=/dev/dri:/dev/dri" ];
|
||||
};
|
||||
# Configure tatulli
|
||||
# Configure tatulli - Plex Stats
|
||||
"tautulli" = {
|
||||
image = "lscr.io/linuxserver/tautulli:latest";
|
||||
environment = {
|
||||
|
@ -101,7 +102,7 @@
|
|||
volumes = [ "/var/lib/tautulli:/config" ];
|
||||
dependsOn = [ "plex" ];
|
||||
};
|
||||
# Configure sabnzbd
|
||||
# Configure sabnzbd - Usenet
|
||||
"sabnzbd" = {
|
||||
image = "lscr.io/linuxserver/sabnzbd:latest";
|
||||
environment = {
|
||||
|
@ -116,7 +117,7 @@
|
|||
"/mnt/scratch/sabnzbd/download:/incomplete-downloads"
|
||||
];
|
||||
};
|
||||
# Configure sonarr
|
||||
# Configure sonarr - TV
|
||||
"sonarr" = {
|
||||
image = "lscr.io/linuxserver/sonarr:latest";
|
||||
environment = {
|
||||
|
@ -132,7 +133,7 @@
|
|||
];
|
||||
dependsOn = [ "sabnzbd" "plex" ];
|
||||
};
|
||||
# Configure radarr
|
||||
# Configure radarr - Movies
|
||||
"radarr" = {
|
||||
image = "lscr.io/linuxserver/radarr:latest";
|
||||
environment = {
|
||||
|
@ -148,7 +149,7 @@
|
|||
];
|
||||
dependsOn = [ "sabnzbd" "plex" ];
|
||||
};
|
||||
# Configure lidarr
|
||||
# Configure lidarr - Music
|
||||
"lidarr" = {
|
||||
image = "lscr.io/linuxserver/lidarr:latest";
|
||||
environment = {
|
||||
|
@ -164,6 +165,18 @@
|
|||
];
|
||||
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
|
||||
systemd.services = {
|
||||
|
|
|
@ -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" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "mccarty.io";
|
||||
|
|
Loading…
Reference in New Issue