add docker container

This commit is contained in:
mjallen18
2024-02-18 22:18:22 -06:00
parent 3a12b492c8
commit e5f94aa899
2 changed files with 23 additions and 1 deletions

View File

@@ -14,10 +14,11 @@ in
imports =
[ # Include the results of the hardware scan.
./hardware-configuration-nas.nix
./nas-apps/jellyfin.nix
./nas-apps/swag.nix
./nas-apps/jellyfin.nix
./nas-apps/sonarr.nix
./nas-apps/radarr.nix
./nas-apps/sabnzbd.nix
];
# Enable nix flakes and nix-command tools

21
nas-apps/sabnzbd.nix Normal file
View File

@@ -0,0 +1,21 @@
{ config, pkgs, ... }:
{
# sabnzbd
virtualisation.oci-containers.containers."sabnzbd" = {
autoStart = true;
image = "linuxserver/sabnzbd";
ports = [ "8080:8080" ];
volumes = [
"/mnt/Safe\ SSD/ssd_app_data/sabnzbd:/config"
"/mnt/Main\ Pool/TV:/tv"
"/mnt/Main\ Pool/Movies:/movies"
"/mnt/Safe\ SSD/ssd_app_data/downloads:/downloads"
"/mnt/Safe\ SSD/ssd_app_data/downloads-incomplete:/downloads-incomplete"
];
environment = {
PUID = "911";
PGID = "1000";
TZ = "America/Chicago";
};
};
}