mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-05 23:43:30 +01:00
boot.initrd.availableKernelModules and boot.kernelModules are machine-specific and belong in the user's hardware-configuration.nix as generated by nixos-generate-config. nvidia.open is already set by common/gpu/nvidia/pascal (Pascal GPUs don't support the open driver). nvidiaSettings defaults to true in the NixOS nvidia module. graphics.enable/enable32Bit should be left to the user or their desktop environment to decide.
27 lines
426 B
Nix
27 lines
426 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkDefault;
|
|
in
|
|
{
|
|
imports = [
|
|
../../../../../common/pc/laptop
|
|
../../../../../common/cpu/intel/coffee-lake
|
|
../../../../../common/gpu/nvidia/pascal
|
|
];
|
|
|
|
hardware = {
|
|
nvidia = {
|
|
modesetting.enable = mkDefault true;
|
|
|
|
prime = {
|
|
sync.enable = mkDefault true;
|
|
intelBusId = "PCI:0@0:2:0";
|
|
nvidiaBusId = "PCI:1@0:0:0";
|
|
};
|
|
};
|
|
};
|
|
}
|