Commit b724e2a

HPCesia <me@hpcesia.com>
2025-08-27 08:39:58
feat: add battery save specialisation
1 parent aafcbad
Changed files (1)
hosts
chaser-kevin
hosts/chaser-kevin/nvidia.nix
@@ -1,8 +1,13 @@
 {
   config,
   lib,
+  nixos-hardware,
   ...
 }: {
+  imports = [
+    nixos-hardware.nixosModules.common-gpu-nvidia
+  ];
+
   services.xserver.videoDrivers = ["nvidia"]; # will install nvidia-vaapi-driver by default
   boot.initrd.kernelModules = ["nvidia"];
 
@@ -13,11 +18,8 @@
     prime = {
       intelBusId = "PCI:0:2:0";
       nvidiaBusId = "PCI:1:0:0";
-      offload = {
-        enable = true;
-        enableOffloadCmd = lib.mkIf config.hardware.nvidia.prime.offload.enable true;
-      };
     };
+    primeBatterySaverSpecialisation = true;
     powerManagement = {
       enable = true;
       finegrained = true;