nixos-hypervisor/services/jellyfin/default.nix
Théo Barnouin 79356b8671
Some checks are pending
/ Build Nix targets (push) Waiting to run
Working Proxmox VM + jellyfin hw encoding
2025-04-11 15:55:10 +02:00

43 lines
1.1 KiB
Nix

{
lib,
config,
pkgs,
...
}: let
cfg = config.services.vm_jellyfin;
in {
options.services.vm_jellyfin = {
enable = lib.mkEnableOption "Enable minimal config";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [pkgs.cifs-utils];
# Intel Hardware Acceleration config
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
intel-vaapi-driver # previously vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-compute-runtime # OpenCL filter support (hardware tonemapping and subtitle burn-in)
vpl-gpu-rt # QSV on 11th gen or newer
];
};
services.jellyfin = {
enable = true;
user = "tbarnouin";
openFirewall = true;
};
fileSystems."/mnt/media" = {
device = "192.168.1.125:/BIGDATA";
fsType = "nfs";
options = [
"x-systemd.automount"
"noauto"
];
};
};
}