add docker image to nas

This commit is contained in:
mjallen18
2024-02-18 21:13:15 -06:00
parent 35cb6f18ab
commit 8bb4b6072d
3 changed files with 20 additions and 12 deletions

View File

@@ -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

View File

@@ -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;

19
nas-apps/sonarr.nix Normal file
View File

@@ -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";
};
};
}