refactored *arr
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

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

View file

@ -84,10 +84,7 @@
mac = "00:50:56:91:0d:69";
nix = false;
};
"unpackerr" = {
ip = "192.168.0.116";
mac = "06:8a:8e:3e:43:45";
};
# ip = "192.168.0.116";
"thelounge" = {
ip = "192.168.0.117";
mac = "00:0c:29:2a:69:8f";
@ -102,11 +99,7 @@
ip = "192.168.0.119";
mac = "DE:7C:32:7E:DD:A1";
};
"radarr2" = {
ip = "192.168.0.120";
mac = "5e:d3:75:93:56:ee";
profile = "radarr";
};
# ip = "192.168.0.120";
"jackett2" = {
ip = "192.168.0.121";
mac = "4e:e7:64:b7:88:b8";
@ -159,19 +152,12 @@
mac = "00:0c:29:9b:e1:c4";
nix = false;
};
"sonarr2" = {
ip = "192.168.0.132";
mac = "ea:ac:be:53:18:27";
profile = "sonarr";
};
# ip = "192.168.0.132";
"mastodon" = {
ip = "192.168.0.138";
mac = "52:60:8a:06:86:9c";
};
"prowlarr" = {
ip = "192.168.0.140";
mac = "3a:67:8e:98:0c:a2";
};
# ip = "192.168.0.140";
"archlinux" = {
ip = "192.168.0.200";
mac = "00:0c:29:e4:0d:17";

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

@ -1,29 +1,19 @@
{ config, ... }:
let vs = config.vault-secrets.secrets;
in {
networking.interfaces.eth0.useDHCP = true;
fileSystems."/mnt/storage" = {
device = "storage:/mnt/storage";
fsType = "nfs";
};
system.stateVersion = "21.11";
vault-secrets.secrets.unpackerr = { };
services.unpackerr = {
enable = true;
debug = true;
debug = false;
environmentFile = "${vs.unpackerr}/environment";
sonarr = {
url = "http://sonarr2:8989/";
url = "http://localhost:8989/";
paths = "/mnt/storage/torrents/r/TV";
};
radarr = {
url = "http://radarr2:7878/";
url = "http://localhost:7878/";
paths = "/mnt/storage/torrents/r/Movie";
};
};
}

View file

@ -1,21 +0,0 @@
_: {
networking.interfaces.eth0.useDHCP = true;
system.stateVersion = "22.11";
services.prowlarr = {
enable = true;
openFirewall = true;
};
virtualisation.podman.enable = true;
virtualisation.oci-containers = {
backend = "podman";
containers = {
flaresolverr = {
image = "flaresolverr/flaresolverr:v3.1.2";
ports = [ "8191:8191" ];
};
};
};
}

View file

@ -1,15 +0,0 @@
_: {
system.stateVersion = "21.05";
networking.interfaces.eth0.useDHCP = true;
fileSystems."/mnt/storage" = {
device = "storage:/mnt/storage";
fsType = "nfs";
};
services.radarr = {
enable = true;
dataDir = "/data/radarr";
openFirewall = true;
};
}

View file

@ -1,15 +0,0 @@
_: {
system.stateVersion = "21.05";
networking.interfaces.eth0.useDHCP = true;
fileSystems."/mnt/storage" = {
device = "storage:/mnt/storage";
fsType = "nfs";
};
services.sonarr = {
enable = true;
dataDir = "/data/sonarr";
openFirewall = true;
};
}