From 8bb4b6072d17f9ca334bb8f7202174e4ff88163a Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Sun, 18 Feb 2024 21:13:15 -0600 Subject: [PATCH] add docker image to nas --- configuration-nas.nix | 1 + nas-apps/jellyfin.nix | 12 ------------ nas-apps/sonarr.nix | 19 +++++++++++++++++++ 3 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 nas-apps/sonarr.nix diff --git a/configuration-nas.nix b/configuration-nas.nix index 082adc4..811bdd9 100644 --- a/configuration-nas.nix +++ b/configuration-nas.nix @@ -16,6 +16,7 @@ in ./hardware-configuration-nas.nix ./nas-apps/jellyfin.nix ./nas-apps/swag.nix + ./nas-apps/sonarr.nix ]; # Enable nix flakes and nix-command tools diff --git a/nas-apps/jellyfin.nix b/nas-apps/jellyfin.nix index 880e439..eeb9bc9 100644 --- a/nas-apps/jellyfin.nix +++ b/nas-apps/jellyfin.nix @@ -1,18 +1,6 @@ { config, pkgs, ... }: { - # environment.systemPackages = [ - # pkgs.jellyfin - # pkgs.jellyfin-web - # pkgs.jellyfin-ffmpeg - # ]; - - # services.jellyfin = { - # enable = true; - # openFirewall = true; - # }; - - # Jellyfin virtualisation.oci-containers.containers."jellyfin" = { autoStart = true; diff --git a/nas-apps/sonarr.nix b/nas-apps/sonarr.nix new file mode 100644 index 0000000..dc5e6e3 --- /dev/null +++ b/nas-apps/sonarr.nix @@ -0,0 +1,19 @@ +{ config, pkgs, ... }: +{ + # sonarr + virtualisation.oci-containers.containers."sonarr" = { + autoStart = true; + image = "linuxserver/sonarr"; + ports = [ "8989:8989" ]; + volumes = [ + "/mnt/Safe\ SSD/ssd_app_data/sonarr:/config" + "/mnt/Main\ Pool/TV:/tv" + "/mnt/Safe\ SSD/ssd_app_data/downloads:/downloads" + ]; + environment = { + PUID = "911"; + PGID = "1000"; + TZ = "America/Chicago"; + }; + }; +}