51 lines
No EOL
1.1 KiB
Nix
51 lines
No EOL
1.1 KiB
Nix
{ inputs, ... }:
|
|
{
|
|
flake.modules.nixos.jellyfin =
|
|
{ lib, ... }:
|
|
{
|
|
|
|
imports = with inputs.self.modules.nixos; [
|
|
podman
|
|
];
|
|
|
|
virtualisation.oci-containers.containers."jellyfin" = {
|
|
image = "lscr.io/linuxserver/jellyfin:latest";
|
|
volumes = [
|
|
"/DockerData/configs/jellyfin/:/config"
|
|
"/Media/:/Media"
|
|
];
|
|
labels = {
|
|
"io.containers.autoupdate" = "registry";
|
|
};
|
|
ports = [
|
|
"8096:8096"
|
|
];
|
|
devices = [
|
|
"/dev/dri:/dev/dri"
|
|
];
|
|
environment = {
|
|
"TZ" = "America/New_York";
|
|
};
|
|
log-driver = "journald";
|
|
};
|
|
|
|
systemd = {
|
|
services = {
|
|
"podman-jellyfin" = {
|
|
serviceConfig = {
|
|
Restart = lib.mkOverride 90 "always";
|
|
};
|
|
partOf = [ "podman-compose-jellyfin-root.target" ];
|
|
wantedBy = [ "podman-compose-jellyfin-root.target" ];
|
|
};
|
|
};
|
|
|
|
targets = {
|
|
"podman-compose-jellyfin-root" = {
|
|
wantedBy = [ "multi-user.target" ];
|
|
};
|
|
};
|
|
};
|
|
|
|
};
|
|
} |