summaryrefslogtreecommitdiffstats
path: root/modules/hardware
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-11-22 16:44:15 -0500
committerJon Santmyer <jon@jonsantmyer.com>2026-11-22 16:44:15 -0500
commitdce44fa1756c9e70b9e667d540b1b12d754dbe63 (patch)
tree59186e6a9c10d7e8c296cc81576f75347acb14cc /modules/hardware
parent9533c3e511e8a8fbb0f7aaa0d0891cec20898cf9 (diff)
downloadnix-config-dce44fa1756c9e70b9e667d540b1b12d754dbe63.tar.gz
nix-config-dce44fa1756c9e70b9e667d540b1b12d754dbe63.tar.bz2
nix-config-dce44fa1756c9e70b9e667d540b1b12d754dbe63.zip
new laptopHEADmaster
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;