kariru: init whisparr and readarr

This commit is contained in:
notohh 2023-12-13 11:21:48 -05:00
parent e1505bf9a1
commit 0e2c61de6e
Signed by: notohh
GPG key ID: BD47506D475EE86D
3 changed files with 29 additions and 2 deletions

View file

@ -22,6 +22,11 @@
fsType = "nfs";
};
fileSystems."/stash" = {
device = "192.168.1.199:/mnt/Sutoreji/stash";
fsType = "nfs";
};
swapDevices = [
{device = "/dev/disk/by-uuid/f28bad28-ae14-4aa7-85c5-47abe46bae56";}
];

View file

@ -1,4 +1,4 @@
_: {
{...}: {
imports = [
./traefik.nix
./torrent.nix
@ -19,8 +19,18 @@ _: {
enable = true;
openFirewall = true;
};
services.bazarr = {
services.readarr = {
enable = true;
openFirewall = true;
};
virtualisation.oci-containers.containers.whisparr = {
image = "hotio/whisparr";
ports = ["6969:6969"];
volumes = [
"/var/lib/whisparr:/config"
"/stash:/data/stash"
"/media/downloads:/data/downloads"
];
extraOptions = ["--network=host"];
};
}

View file

@ -20,6 +20,16 @@ _: {
entryPoints = ["web"];
service = "radarr";
};
readarr = {
rule = "Host(`readarr.internal.flake.sh`)";
entryPoints = ["web"];
service = "readarr";
};
whisparr = {
rule = "Host(`whisparr.internal.flake.sh`)";
entryPoints = ["web"];
service = "whisparr";
};
prowlarr = {
rule = "Host(`prowlarr.internal.flake.sh`)";
entrypoints = ["web"];
@ -29,6 +39,8 @@ _: {
services = {
sonarr.loadBalancer.servers = [{url = "http://localhost:8989";}];
radarr.loadBalancer.servers = [{url = "http://localhost:7878";}];
readarr.loadBalancer.servers = [{url = "http://localhost:8787";}];
whisparr.loadBalancer.servers = [{url = "http://localhost:6969";}];
prowlarr.loadBalancer.servers = [{url = "http://localhost:9696";}];
};
};