2023-12-25 15:14:17 -05:00
|
|
|
{ lib, config, ... }:
|
2022-11-12 20:32:01 -05:00
|
|
|
|
2023-09-17 15:06:35 -04:00
|
|
|
{
|
2022-11-12 20:32:01 -05:00
|
|
|
imports = [ ./. ];
|
|
|
|
|
|
|
|
hardware.nvidia.prime = {
|
2023-09-17 15:06:35 -04:00
|
|
|
offload = {
|
|
|
|
enable = lib.mkOverride 990 true;
|
2023-09-17 15:52:47 -04:00
|
|
|
enableOffloadCmd = lib.mkIf config.hardware.nvidia.prime.offload.enable true; # Provides `nvidia-offload` command.
|
2023-09-17 15:06:35 -04:00
|
|
|
};
|
2022-11-12 20:32:01 -05:00
|
|
|
# Hardware should specify the bus ID for intel/nvidia devices
|
|
|
|
};
|
|
|
|
}
|