mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-04 01:07:14 +08:00
removed parts that are included in other modules
This commit is contained in:
@@ -4,30 +4,22 @@
|
||||
../../../common/gpu/intel/kaby-lake
|
||||
../../../common/pc/laptop
|
||||
./xps-common.nix
|
||||
../../../common/gpu/nvidia
|
||||
];
|
||||
|
||||
# enable opengpl and gpu drivers
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
hardware.nvidia.modesetting.enable = true;
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
offload = {
|
||||
enable = true;
|
||||
enableOffloadCmd = true; # provides the nvidia-offload command
|
||||
};
|
||||
|
||||
# integrated
|
||||
# integrated
|
||||
intelBusId = "PCI:0:2:0";
|
||||
|
||||
# dedicated
|
||||
# dedicated
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user