summaryrefslogtreecommitdiffstats
path: root/modules/hardware
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hardware')
-rw-r--r--modules/hardware/gpu.nix10
-rw-r--r--modules/hardware/laptop.nix2
2 files changed, 5 insertions, 7 deletions
diff --git a/modules/hardware/gpu.nix b/modules/hardware/gpu.nix
index 32fdf68..fce0f70 100644
--- a/modules/hardware/gpu.nix
+++ b/modules/hardware/gpu.nix
@@ -22,18 +22,16 @@ in {
};
}
(lib.mkIf (device.gpu == "intel") {
- boot.initrd.kernelModules = ["i915"];
services.xserver.videoDrivers = ["modesetting"];
hardware.graphics.extraPackages = [
- pkgs.intel-compute-runtime
+ pkgs.vpl-gpu-rt
pkgs.intel-media-driver
- pkgs.intel-vaapi-driver
- pkgs.libva-vdpau-driver
- pkgs.libvdpau-va-gl
];
- environment.variables.VDPAU_DRIVER = "va_gl";
+ environment.sessionVariables = {
+ LIBVA_DRIVER_NAME = "iHD";
+ };
})
(lib.mkIf (device.gpu == "nvidia") {
hardware.graphics.extraPackages = with pkgs; [ nvidia-vaapi-driver ];
diff --git a/modules/hardware/laptop.nix b/modules/hardware/laptop.nix
index af8d581..32c7ed5 100644
--- a/modules/hardware/laptop.nix
+++ b/modules/hardware/laptop.nix
@@ -28,7 +28,7 @@ in {
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
- CPU_MAX_PERF_ON_BAT = 33;
+ CPU_MAX_PERF_ON_BAT = 50;
START_CHARGE_THRESH_BAT0 = 75;
STOP_CHARGE_THRESH_BAT0 = 95;