Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save oscarcarlsson/dc8dfafa372f901149394ed3e1237b14 to your computer and use it in GitHub Desktop.
Save oscarcarlsson/dc8dfafa372f901149394ed3e1237b14 to your computer and use it in GitHub Desktop.
# cat /etc/nixos/virtualisation.nix
{ config, pkgs, ... }:
{
virtualisation.oci-containers = {
backend = "docker";
containers = {
jellyfin = {
image = "jellyfin/jellyfin:latest";
ports = [
"8096:8096"
"8920:8920"
];
volumes = [
"/srv/jellyfin/cache:/cache"
"/srv/jellyfin/config:/config"
"/mnt/media:/media:ro"
];
extraOptions = [
"--network=host"
"--device=/dev/dri/renderD128:/dev/dri/renderD128"
"--device=/dev/dri/card0:/dev/dri/card0"
];
};
navidrome = {
image = "deluan/navidrome:latest";
ports = [ "4533:4533" ];
environment = {
ND_SCANSCHEDULE = "1h";
};
volumes = [
"/srv/navidrome/data:/data"
"/mnt/media/music:/music:ro"
];
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment