2023-04-15 22:46:06 +00:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
2023-05-24 11:02:56 +00:00
|
|
|
virtualisation.oci-containers.containers.radarr = {
|
|
|
|
image = "lscr.io/linuxserver/radarr:latest";
|
|
|
|
ports = [ "192.168.42.2:7878:7878" ];
|
|
|
|
environment = {
|
|
|
|
"PUID" = "1001";
|
|
|
|
"PGID" = "2001";
|
|
|
|
"TZ" = "Etc/UTC";
|
|
|
|
};
|
|
|
|
volumes = [
|
|
|
|
"/var/lib/radarr/.config/Radarr:/config"
|
|
|
|
"/mnt/downloads:/mnt/downloads"
|
|
|
|
"/mnt/media/Movies:/mnt/media/Movies"
|
|
|
|
];
|
|
|
|
extraOptions = [
|
|
|
|
"--network=ns:/var/run/netns/wg"
|
|
|
|
"--label=com.centurylinklabs.watchtower.enable=true"
|
|
|
|
"--label=io.containers.autoupdate=registry"
|
|
|
|
];
|
2023-04-15 22:46:06 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 11:02:56 +00:00
|
|
|
systemd.services.podman-radarr =
|
2023-04-27 22:05:07 +00:00
|
|
|
let
|
|
|
|
mounts = [
|
|
|
|
"mnt-media-Movies.mount"
|
|
|
|
"mnt-downloads.mount"
|
2023-04-19 06:04:32 +00:00
|
|
|
];
|
2023-05-24 11:02:56 +00:00
|
|
|
|
|
|
|
depends = [
|
|
|
|
"podman-sabnzbd.service"
|
|
|
|
"podman-qbittorrent.service"
|
|
|
|
];
|
2023-04-27 22:05:07 +00:00
|
|
|
in
|
|
|
|
{
|
2023-05-24 11:02:56 +00:00
|
|
|
requires = lib.mkAfter (mounts ++ depends);
|
2023-04-27 22:05:07 +00:00
|
|
|
bindsTo = [ "wg.service" ];
|
2023-05-24 11:02:56 +00:00
|
|
|
after = lib.mkForce ([ "wg.service" ] ++ mounts ++ depends);
|
2023-04-15 22:46:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx.virtualHosts."radarr.internal.kempkens.network" = {
|
|
|
|
quic = true;
|
|
|
|
http3 = true;
|
|
|
|
|
|
|
|
onlySSL = true;
|
|
|
|
useACMEHost = "internal.kempkens.network";
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
client_max_body_size 32m;
|
|
|
|
'';
|
|
|
|
|
|
|
|
locations."/" = {
|
|
|
|
recommendedProxySettings = true;
|
2023-04-18 18:11:34 +00:00
|
|
|
proxyPass = "http://192.168.42.2:7878";
|
|
|
|
proxyWebsockets = true;
|
2023-04-15 22:46:06 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|