jellyfin to docker
This commit is contained in:
@@ -13,8 +13,9 @@ in
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./hardware-configuration-nas.nix
|
||||
./nas-apps/jellyfin.nix
|
||||
./nas-apps/swag.nix
|
||||
];
|
||||
|
||||
# Enable nix flakes and nix-command tools
|
||||
@@ -211,6 +212,8 @@ in
|
||||
];
|
||||
};
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
# This option defines the first version of NixOS you have installed on this particular machine,
|
||||
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
||||
#
|
||||
|
||||
@@ -1,14 +1,34 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.jellyfin
|
||||
pkgs.jellyfin-web
|
||||
pkgs.jellyfin-ffmpeg
|
||||
];
|
||||
# environment.systemPackages = [
|
||||
# pkgs.jellyfin
|
||||
# pkgs.jellyfin-web
|
||||
# pkgs.jellyfin-ffmpeg
|
||||
# ];
|
||||
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
# services.jellyfin = {
|
||||
# enable = true;
|
||||
# openFirewall = true;
|
||||
# };
|
||||
|
||||
|
||||
# Jellyfin
|
||||
virtualisation.oci-containers.containers."jellyfin" = {
|
||||
autoStart = true;
|
||||
image = "jellyfin/jellyfin";
|
||||
volumes = [
|
||||
"/mnt/Safe\ SSD/ssd_app_data/jellyfin/config:/config"
|
||||
"/mnt/Safe\ SSD/ssd_app_data/jellyfin/cache:/cache"
|
||||
"/mnt/Safe\ SSD/ssd_app_data/jellyfin/log:/log"
|
||||
"/mnt/Main\ Pool/Movies:/movies"
|
||||
"/mnt/Main\ Pool/tv:/TV"
|
||||
];
|
||||
ports = [ "8096:8096" ];
|
||||
environment = {
|
||||
JELLYFIN_LOG_DIR = "/log";
|
||||
PUID = 911;
|
||||
PGID = 1000;
|
||||
};
|
||||
};
|
||||
}
|
||||
20
nas-apps/swag.nix
Normal file
20
nas-apps/swag.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
# Swag
|
||||
virtualisation.oci-containers.containers."portainer" = {
|
||||
autoStart = true;
|
||||
image = "linuxserver/swag";
|
||||
ports = [ "80:80" "443:443" ];
|
||||
volumes = [
|
||||
"/mnt/Safe\ SSD/ssd_app_data/swag:/config"
|
||||
];
|
||||
environment = {
|
||||
PGID = 1000;
|
||||
PUID = 1000;
|
||||
TZ = "America/Chicago";
|
||||
URL = "mjallen.dev";
|
||||
VALIDATION = "http";
|
||||
SUBDOMAINS = "jellyfin,hass,cloud,jellyseer";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user