mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-09-12 05:26:30 +02:00
14 lines
338 B
Nix
14 lines
338 B
Nix
{ lib, pkgs, config, ... }:
|
|
|
|
{
|
|
imports = [ ./. ];
|
|
|
|
hardware.nvidia.prime = {
|
|
offload = {
|
|
enable = lib.mkOverride 990 true;
|
|
enableOffloadCmd = lib.mkIf config.hardware.nvidia.prime.offload.enable true; # Provides `nvidia-offload` command.
|
|
};
|
|
# Hardware should specify the bus ID for intel/nvidia devices
|
|
};
|
|
}
|