mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-03 00:37:14 +08:00
The common/pc/laptop/ssd folder was apparently moved a level up and was replaced by a symlink to keep things working. We can consolidate this now.
23 lines
505 B
Nix
23 lines
505 B
Nix
{ lib, config, ... }: {
|
|
imports = [
|
|
../.
|
|
../../../common/cpu/intel/whiskey-lake
|
|
../../../common/pc/ssd
|
|
../../../common/gpu/nvidia/pascal
|
|
../../../common/gpu/nvidia/prime-sync.nix
|
|
];
|
|
|
|
hardware = {
|
|
graphics.enable = lib.mkDefault true;
|
|
|
|
nvidia = {
|
|
prime = {
|
|
intelBusId = lib.mkDefault "PCI:0:2:0";
|
|
nvidiaBusId = lib.mkDefault "PCI:60:0:0";
|
|
};
|
|
|
|
powerManagement.enable = lib.mkDefault config.hardware.nvidia.prime.sync.enable;
|
|
};
|
|
};
|
|
}
|