refactor containers
This commit is contained in:
parent
1d23c89f58
commit
2a15f00fa1
11 changed files with 195 additions and 174 deletions
29
nixos/viridian/containers/jellyfin.nix
Normal file
29
nixos/viridian/containers/jellyfin.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
virtualisation.oci-containers.containers = {
|
||||
# Volunteer-built media solution that puts you in control of your media
|
||||
jellyfin = {
|
||||
autoStart = true;
|
||||
image = "jellyfin/jellyfin:10.8.12";
|
||||
ports = [
|
||||
"8096:8096/tcp" # HTTP traffic
|
||||
"8920:8920/tcp" # HTTPS traffic
|
||||
# "1900:1900/udp" # Service auto-discovery
|
||||
"7359:7359/udp" # Client auto-discovery
|
||||
];
|
||||
volumes = [
|
||||
# Media library
|
||||
"/srv/multimedia/library:/media:ro"
|
||||
# Container data
|
||||
"/srv/containers/jellyfin/config:/config:rw"
|
||||
"/srv/containers/jellyfin/cache:/cache:rw"
|
||||
];
|
||||
extraOptions = [
|
||||
"--group-add=303"
|
||||
"--device=/dev/dri/renderD128:/dev/dri/renderD128"
|
||||
"--network=media-stack"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue