Jellyfin hardware transcoding

This commit is contained in:
Jan Kremer 2026-03-10 12:35:04 +01:00
parent 94bd2662a5
commit a68a995a59
No known key found for this signature in database
3 changed files with 13 additions and 10 deletions

View file

@ -3,7 +3,6 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -1,5 +1,5 @@
{
inputs,
pkgs,
lib,
modulesPath,
...
@ -7,7 +7,6 @@
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
inputs.nixos-hardware.nixosModules.common-cpu-intel
];
boot = {
@ -57,8 +56,15 @@
interfaces.eno1.wakeOnLan.enable = true;
};
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
];
};
environment.sessionVariables = {
LIBVA_DRIVER_NAME = "i965"; # Prefered for Skylake processors
LIBVA_DRIVER_NAME = "iHD";
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";

View file

@ -1,12 +1,10 @@
{ pkgs, ... }:
{
services.jellyfin.enable = true; # port = 8096
environment.systemPackages = [
pkgs.jellyfin
pkgs.jellyfin-web
pkgs.jellyfin-ffmpeg
users.users.jellyfin.extraGroups = [
"media"
"video"
"render"
];
users.users.jellyfin.extraGroups = [ "media" ];
## Grab EPG data daily
virtualisation.oci-containers = {