nixos: Fixes
This commit is contained in:
parent
4f006881a8
commit
a009880d44
1 changed files with 22 additions and 18 deletions
|
|
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue