built sonarr

This commit is contained in:
Chris Dombroski 2024-10-02 21:23:25 -04:00
parent f411a081c5
commit fdaa23f0f0
2 changed files with 21 additions and 5 deletions

View file

@ -30,9 +30,7 @@
swag_url = "calibre-web.icanttype.org";
swag_port = "8083";
};
extraOptions = [
"--network=www"
];
extraOptions = [ "--network=www" ];
};
};
};

View file

@ -1,16 +1,34 @@
{ pkgs, ... }:
{
virtualisation = {
containers.enable = true;
podman.enable = true;
oci-containers.containers = {
sonarr = {
image = "lscr.io/linuxserver/sonarr:latest";
image = "my-sonarr:latest";
imageFile = pkgs.dockerTools.buildLayeredImage {
name = "my-sonarr";
tag = "latest";
contents = [ pkgs.busybox ];
config = {
User = "911:911";
Cmd = [
"${pkgs.sonarr}/bin/NzbDrone"
"-nobrowser"
"-data=/config"
];
};
};
volumes = [
"sonarr-config:/config"
"/video-data:/data"
];
environment.TZ = "America/New_York";
labels.swag = "enable";
labels = {
swag = "enable";
swag_url = "sonarr.icanttype.org";
swag_port = "8989";
};
extraOptions = [
"--pull=newer"
"--network=www"