helm/hosts/profiles/jellyfin/default.nix

28 lines
723 B
Nix
Raw Normal View History

2023-04-04 06:34:47 -07:00
{ config, lib, pkgs, ... }:
{
2023-04-12 20:56:46 -07:00
# Enable Hardware Acceleration for transcoding
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-compute-runtime # OpenCL filter support (hardware tonemapping and subtitle burn-in)
];
};
2023-04-04 06:34:47 -07:00
services.jellyfin = {
enable = true;
user = "jellyfin";
group = "video";
openFirewall = true; # only for defaults
};
networking.firewall.allowedTCPPorts = [ 8181 ];
2023-04-12 20:56:46 -07:00
users.users.jellyfin = {
extraGroups = [ "video" "audio" ];
};
2023-04-04 06:34:47 -07:00
}