refactored *arr

This commit is contained in:
Vivian 2023-05-18 16:58:36 +02:00
parent 2fd2f93853
commit 67a7ac382b
11 changed files with 51 additions and 104 deletions

View file

@ -0,0 +1,2 @@
# Overseerr & co.
This LXC container hosts all my *arr services and overseerr

View file

@ -2,11 +2,14 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ ... }:
{
{ ... }: {
imports = [
./radarr.nix
./sonarr.nix
./lidarr.nix
./prowlarr.nix
./unpackerr.nix
./overseerr.nix
];
# This value determines the NixOS release from which the default
@ -17,29 +20,11 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.11"; # Did you read the comment?
# Additional packages
# environment.systemPackages = with pkgs; [ ];
networking.firewall.allowedTCPPorts = [ 5055 ];
fileSystems."/mnt/storage" = {
device = "storage:/mnt/storage";
fsType = "nfs";
};
virtualisation.podman.enable = true;
# TODO: Write NixOS package https://github.com/NixOS/nixpkgs/issues/135885
virtualisation.oci-containers = {
backend = "podman";
containers = {
overseerr = {
image = "ghcr.io/sct/overseerr:1.32.5";
environment = {
TZ = "Europe/Amsterdam";
};
ports = [ "5055:5055" ];
volumes = [ "/var/lib/overseerr/config:/app/config" ];
};
};
};
virtualisation.oci-containers.backend = "podman";
}

View file

@ -0,0 +1,10 @@
{ ... }: {
networking.firewall.allowedTCPPorts = [ 5055 ];
# TODO: Write NixOS package https://github.com/NixOS/nixpkgs/issues/135885
virtualisation.oci-containers.containers.overseerr = {
image = "ghcr.io/sct/overseerr:1.32.5";
environment = { TZ = "Europe/Amsterdam"; };
ports = [ "5055:5055" ];
volumes = [ "/var/lib/overseerr/config:/app/config" ];
};
}

View file

@ -0,0 +1,11 @@
{ ... }: {
services.prowlarr = {
enable = true;
openFirewall = true;
};
virtualisation.oci-containers.containers.flaresolverr = {
image = "flaresolverr/flaresolverr:v3.1.2";
ports = [ "8191:8191" ];
};
}

View file

@ -0,0 +1,7 @@
{ ... }: {
services.radarr = {
enable = true;
openFirewall = true;
dataDir = "/var/lib/radarr";
};
}

View file

@ -0,0 +1,7 @@
{ ... }: {
services.sonarr = {
enable = true;
dataDir = "/var/lib/sonarr";
openFirewall = true;
};
}

View file

@ -0,0 +1,19 @@
{ config, ... }:
let vs = config.vault-secrets.secrets;
in {
vault-secrets.secrets.unpackerr = { };
services.unpackerr = {
enable = true;
debug = false;
environmentFile = "${vs.unpackerr}/environment";
sonarr = {
url = "http://localhost:8989/";
paths = "/mnt/storage/torrents/r/TV";
};
radarr = {
url = "http://localhost:7878/";
paths = "/mnt/storage/torrents/r/Movie";
};
};
}