This commit is contained in:
parent
a2511aa708
commit
bc954cc68d
11 changed files with 51 additions and 104 deletions
|
@ -84,10 +84,7 @@
|
||||||
mac = "00:50:56:91:0d:69";
|
mac = "00:50:56:91:0d:69";
|
||||||
nix = false;
|
nix = false;
|
||||||
};
|
};
|
||||||
"unpackerr" = {
|
# ip = "192.168.0.116";
|
||||||
ip = "192.168.0.116";
|
|
||||||
mac = "06:8a:8e:3e:43:45";
|
|
||||||
};
|
|
||||||
"thelounge" = {
|
"thelounge" = {
|
||||||
ip = "192.168.0.117";
|
ip = "192.168.0.117";
|
||||||
mac = "00:0c:29:2a:69:8f";
|
mac = "00:0c:29:2a:69:8f";
|
||||||
|
@ -102,11 +99,7 @@
|
||||||
ip = "192.168.0.119";
|
ip = "192.168.0.119";
|
||||||
mac = "DE:7C:32:7E:DD:A1";
|
mac = "DE:7C:32:7E:DD:A1";
|
||||||
};
|
};
|
||||||
"radarr2" = {
|
# ip = "192.168.0.120";
|
||||||
ip = "192.168.0.120";
|
|
||||||
mac = "5e:d3:75:93:56:ee";
|
|
||||||
profile = "radarr";
|
|
||||||
};
|
|
||||||
"jackett2" = {
|
"jackett2" = {
|
||||||
ip = "192.168.0.121";
|
ip = "192.168.0.121";
|
||||||
mac = "4e:e7:64:b7:88:b8";
|
mac = "4e:e7:64:b7:88:b8";
|
||||||
|
@ -159,19 +152,12 @@
|
||||||
mac = "00:0c:29:9b:e1:c4";
|
mac = "00:0c:29:9b:e1:c4";
|
||||||
nix = false;
|
nix = false;
|
||||||
};
|
};
|
||||||
"sonarr2" = {
|
# ip = "192.168.0.132";
|
||||||
ip = "192.168.0.132";
|
|
||||||
mac = "ea:ac:be:53:18:27";
|
|
||||||
profile = "sonarr";
|
|
||||||
};
|
|
||||||
"mastodon" = {
|
"mastodon" = {
|
||||||
ip = "192.168.0.138";
|
ip = "192.168.0.138";
|
||||||
mac = "52:60:8a:06:86:9c";
|
mac = "52:60:8a:06:86:9c";
|
||||||
};
|
};
|
||||||
"prowlarr" = {
|
# ip = "192.168.0.140";
|
||||||
ip = "192.168.0.140";
|
|
||||||
mac = "3a:67:8e:98:0c:a2";
|
|
||||||
};
|
|
||||||
"archlinux" = {
|
"archlinux" = {
|
||||||
ip = "192.168.0.200";
|
ip = "192.168.0.200";
|
||||||
mac = "00:0c:29:e4:0d:17";
|
mac = "00:0c:29:e4:0d:17";
|
||||||
|
|
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
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ ... }:
|
{ ... }: {
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
|
./radarr.nix
|
||||||
|
./sonarr.nix
|
||||||
./lidarr.nix
|
./lidarr.nix
|
||||||
|
./prowlarr.nix
|
||||||
|
./unpackerr.nix
|
||||||
|
./overseerr.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# 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).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "22.11"; # Did you read the comment?
|
system.stateVersion = "22.11"; # Did you read the comment?
|
||||||
|
|
||||||
# Additional packages
|
|
||||||
# environment.systemPackages = with pkgs; [ ];
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 5055 ];
|
|
||||||
|
|
||||||
fileSystems."/mnt/storage" = {
|
fileSystems."/mnt/storage" = {
|
||||||
device = "storage:/mnt/storage";
|
device = "storage:/mnt/storage";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.podman.enable = true;
|
virtualisation.podman.enable = true;
|
||||||
# TODO: Write NixOS package https://github.com/NixOS/nixpkgs/issues/135885
|
virtualisation.oci-containers.backend = "podman";
|
||||||
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" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,29 +1,19 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
let vs = config.vault-secrets.secrets;
|
let vs = config.vault-secrets.secrets;
|
||||||
in {
|
in {
|
||||||
networking.interfaces.eth0.useDHCP = true;
|
|
||||||
|
|
||||||
fileSystems."/mnt/storage" = {
|
|
||||||
device = "storage:/mnt/storage";
|
|
||||||
fsType = "nfs";
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "21.11";
|
|
||||||
|
|
||||||
vault-secrets.secrets.unpackerr = { };
|
vault-secrets.secrets.unpackerr = { };
|
||||||
|
|
||||||
services.unpackerr = {
|
services.unpackerr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
debug = true;
|
debug = false;
|
||||||
environmentFile = "${vs.unpackerr}/environment";
|
environmentFile = "${vs.unpackerr}/environment";
|
||||||
sonarr = {
|
sonarr = {
|
||||||
url = "http://sonarr2:8989/";
|
url = "http://localhost:8989/";
|
||||||
paths = "/mnt/storage/torrents/r/TV";
|
paths = "/mnt/storage/torrents/r/TV";
|
||||||
};
|
};
|
||||||
radarr = {
|
radarr = {
|
||||||
url = "http://radarr2:7878/";
|
url = "http://localhost:7878/";
|
||||||
paths = "/mnt/storage/torrents/r/Movie";
|
paths = "/mnt/storage/torrents/r/Movie";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue