add sonarr

This commit is contained in:
sadan 2025-03-09 18:59:33 -04:00
parent 6197814098
commit 73a7da10ef
No known key found for this signature in database
3 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,14 @@
{ config, ... }:
{
imports = [
../../homeModules/sops.nix
];
home = {
file = {
sonarr_compose = {
source = ./docker-compose.yaml;
target = "./src/sonarr/docker-compose.yml";
};
};
};
}

View file

@ -0,0 +1,15 @@
services:
sonarr:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
environment:
- PUID=108
- PGID=1002
- TZ=America/New_York
volumes:
- /storage/sonarrConf:/config
- /storage/tv:/storage/tv
- /storage/downloads:/storage/downloads
ports:
- 8989:8989
restart: unless_stopped

View file

@ -0,0 +1,18 @@
{ ... }:
{
services = {
nginx = {
virtualHosts = {
"sonarr.sadan.zip" = {
forceSSL = true;
useACMEHost = "sadan.zip";
locations = {
"/" = {
proxyPass = "https://localhost:8989";
};
};
};
};
};
};
}