refactored *arr
This commit is contained in:
parent
2fd2f93853
commit
67a7ac382b
11 changed files with 51 additions and 104 deletions
2
nixos/hosts/hades/overseerr/README.md
Normal file
2
nixos/hosts/hades/overseerr/README.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Overseerr & co.
|
||||
This LXC container hosts all my *arr services and overseerr
|
|
@ -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";
|
||||
}
|
||||
|
|
10
nixos/hosts/hades/overseerr/overseerr.nix
Normal file
10
nixos/hosts/hades/overseerr/overseerr.nix
Normal 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" ];
|
||||
};
|
||||
}
|
11
nixos/hosts/hades/overseerr/prowlarr.nix
Normal file
11
nixos/hosts/hades/overseerr/prowlarr.nix
Normal 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" ];
|
||||
};
|
||||
}
|
7
nixos/hosts/hades/overseerr/radarr.nix
Normal file
7
nixos/hosts/hades/overseerr/radarr.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }: {
|
||||
services.radarr = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
dataDir = "/var/lib/radarr";
|
||||
};
|
||||
}
|
7
nixos/hosts/hades/overseerr/sonarr.nix
Normal file
7
nixos/hosts/hades/overseerr/sonarr.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }: {
|
||||
services.sonarr = {
|
||||
enable = true;
|
||||
dataDir = "/var/lib/sonarr";
|
||||
openFirewall = true;
|
||||
};
|
||||
}
|
19
nixos/hosts/hades/overseerr/unpackerr.nix
Normal file
19
nixos/hosts/hades/overseerr/unpackerr.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue