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