mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-26 03:29:44 +01:00
ba8294c0a1
These modules only included gpu configuration, so belong in that location.
28 lines
563 B
Nix
28 lines
563 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
imports = [
|
|
../../common/cpu/intel
|
|
../../common/gpu/intel/comet-lake
|
|
../../common/gpu/nvidia
|
|
../../common/gpu/nvidia/prime.nix
|
|
../../common/hidpi.nix
|
|
../../common/pc/laptop
|
|
../../common/pc/ssd
|
|
];
|
|
|
|
hardware.nvidia = {
|
|
modesetting.enable = lib.mkDefault true;
|
|
open = lib.mkDefault false;
|
|
nvidiaSettings = lib.mkDefault true;
|
|
prime = {
|
|
intelBusId = "PCI:0:2:0";
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
};
|
|
};
|
|
|
|
services.power-profiles-daemon.enable = lib.mkDefault true;
|
|
}
|