1
0
Fork 0
dotfiles/system/nixos/radarr.nix

55 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2023-07-16 22:17:50 +00:00
{ lib, ... }:
2023-04-15 22:46:06 +00:00
{
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 =
let
mounts = [
"mnt-media-Movies.mount"
"mnt-downloads.mount"
2023-04-19 06:04:32 +00:00
];
in
{
2023-05-27 10:49:12 +00:00
requires = lib.mkAfter mounts;
bindsTo = [ "wg.service" ];
2023-05-27 10:49:12 +00:00
after = lib.mkForce ([ "wg.service" ] ++ mounts);
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;
proxyPass = "http://192.168.42.2:7878";
proxyWebsockets = true;
2023-04-15 22:46:06 +00:00
};
};
}