📺 Reorganized, changed hardware acceleration to use Nvidia, added

Nvidia powermanagement
This commit is contained in:
2025-01-11 23:50:44 +01:00
parent e67a840d93
commit 759c57dfac
3 changed files with 26 additions and 23 deletions

View File

@ -1,19 +1,8 @@
{ pkgs, ... }:
{
imports = [
./nvidia.nix
];
# For hardware acceleration
environment.sessionVariables.LIBVA_DRIVER_NAME = "iHD";
# Enable OpenGL
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
# Used for hardware-acceleration
intel-media-driver # For Broadwell (2014) or newer processors. LIBVA_DRIVER_NAME=iHD
];
};
hardware.graphics.enable = true;
}