Services/Sabnzbd: Init at v4.5.5
This commit is contained in:
49
system/services/sabnzbd.nix
Normal file
49
system/services/sabnzbd.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
sabnzbdVersion = "4.5.5";
|
||||
in {
|
||||
virtualisation.oci-containers.containers = {
|
||||
sabnzbd = {
|
||||
image = "linuxserver/sabnzbd:${sabnzbdVersion}";
|
||||
autoStart = true;
|
||||
|
||||
login = {
|
||||
# Uses DockerHub by default
|
||||
# registry = "";
|
||||
|
||||
# DockerHub Credentials
|
||||
username = "christoph.urlacher@protonmail.com";
|
||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||
};
|
||||
|
||||
dependsOn = [];
|
||||
|
||||
ports = [
|
||||
# "8080:8080"
|
||||
];
|
||||
|
||||
volumes = [
|
||||
"/media/Movie/0-MakeMKV:/media/movies"
|
||||
"/media/Show/0-MakeMKV:/media/shows"
|
||||
|
||||
"sabnzbd_config:/config"
|
||||
];
|
||||
|
||||
environment = {
|
||||
PUID = "3000";
|
||||
PGID = "3000";
|
||||
TZ = "Europe/Berlin";
|
||||
};
|
||||
|
||||
extraOptions = [
|
||||
# "--privileged"
|
||||
# "--device=nvidia.com/gpu=all"
|
||||
"--net=behind-nginx"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user