1
Files
flake-nixinator/system/services/sabnzbd-shows.nix

48 lines
1.0 KiB
Nix

{
mylib,
config,
lib,
pkgs,
...
}: let
sabnzbdVersion = "4.5.5";
in {
virtualisation.oci-containers.containers = {
sabnzbd-shows = {
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
autoStart = true;
login = mylib.containers.mkDockerLogin config;
dependsOn = [];
ports = [
# NOTE: On initial start, the gui won't be reachable via reverse proxy,
# because the hostname has to be whitelisted.
# Edit the "sabnzbd.ini" in the docker volume and add the reverse-proxy address
# to the host_whitelist variable.
# "8080:8080"
];
volumes = [
"/media/Show/.sabnzbd:/media/shows/incomplete"
"/media/Show/.sabnzbd-complete:/media/shows/complete"
"sabnzbd-shows_config:/config"
];
environment = {
PUID = "3000";
PGID = "3000";
TZ = "Europe/Berlin";
};
extraOptions = [
# "--privileged"
# "--device=nvidia.com/gpu=all"
"--net=behind-nginx"
];
};
};
}