Add sonarr service
This commit is contained in:
33
ServeNix/services/sonarr.nix
Normal file
33
ServeNix/services/sonarr.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{config, lib, pkgs, ...}:
|
||||
|
||||
{
|
||||
virtualisation.oci-containers.containers.sonarr = {
|
||||
image = "linuxserver/sonarr:latest";
|
||||
autoStart = true;
|
||||
|
||||
dependsOn = [
|
||||
"sabnzbd"
|
||||
"prowlarr"
|
||||
];
|
||||
|
||||
ports = [
|
||||
"8989:8989"
|
||||
];
|
||||
|
||||
volumes = [
|
||||
"/media/Usenet:/downloads"
|
||||
"/media/Show:/tv"
|
||||
"sonarr_config:/config"
|
||||
];
|
||||
|
||||
environment = {
|
||||
PUID = "3001";
|
||||
PGID = "3001";
|
||||
TZ = "Europe/Berlin";
|
||||
};
|
||||
|
||||
extraOptions = [
|
||||
# "--restart=always" # Conflicts with NixOS' default of using --rm
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user