nixos: Fixes

This commit is contained in:
Jan Kremer 2025-11-26 22:57:55 +01:00
parent 4f006881a8
commit a009880d44
Signed by: jan
GPG key ID: A7DA689CB3B078EC

View file

@ -31,38 +31,42 @@
]; ];
## Hardware transcoding ## Hardware transcoding
nixpkgs.config.packageOverrides = pkgs: { nixpkgs.config.allowUnfree = true;
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
hardware.graphics = { hardware.graphics = {
enable = true; enable = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
## Intel Core i5 Skylake
intel-ocl
intel-media-driver intel-media-driver
intel-vaapi-driver # previously vaapiIntel intel-compute-runtime-legacy1
vaapiVdpau
intel-compute-runtime # OpenCL filter support (hardware tonemapping and subtitle burn-in)
# vpl-gpu-rt # QSV on 11th gen or newer
intel-media-sdk # QSV up to 11th gen
]; ];
}; };
## Grab EPG data daily ## Grab EPG data daily
systemd = { systemd = {
services.epg = { services = {
script = "${pkgs.nodejs}/bin/npm run --prefix /media/TV/epg/ grab -- --channels=custom.channels.xml"; epg = {
path = [ script = "${pkgs.nodejs}/bin/npm run --prefix /media/TV/epg/ grab -- --channels=custom.channels.xml";
pkgs.bash path = [
pkgs.nodejs pkgs.bash
]; pkgs.nodejs
serviceConfig = { ];
Type = "oneshot"; serviceConfig = {
User = "root"; Type = "oneshot";
User = "root";
};
startAt = "daily"; # Creates a timer
}; };
startAt = "daily"; # Creates a timer jellyfin.environment.LIBVA_DRIVER_NAME = "iHD";
}; };
timers.epg.timerConfig.Persistent = true; timers.epg.timerConfig.Persistent = true;
}; };
environment.sessionVariables = {
LIBVA_DRIVER_NAME = "iHD";
};
system.stateVersion = "24.05"; system.stateVersion = "24.05";
}; };
}; };