mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 03:19:42 +01:00
dell-precision-5560: cleanup
This commit is contained in:
parent
06c46e3902
commit
c97623b428
1 changed files with 9 additions and 24 deletions
|
@ -1,40 +1,25 @@
|
||||||
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
imports = [
|
||||||
../../../common/pc/laptop
|
../../../common/pc/laptop
|
||||||
../../../common/pc/laptop/ssd
|
../../../common/pc/laptop/ssd
|
||||||
../../../common/cpu/intel
|
../../../common/cpu/intel
|
||||||
../../../common/gpu/intel/tiger-lake
|
../../../common/gpu/intel/tiger-lake
|
||||||
../../../common/gpu/nvidia/prime.nix
|
|
||||||
../../../common/gpu/nvidia/turing
|
../../../common/gpu/nvidia/turing
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
blacklistedKernelModules = ["nouveau"];
|
blacklistedKernelModules = [ "nouveau" ];
|
||||||
kernelModules = ["kvm-intel"];
|
kernelModules = [ "kvm-intel" ];
|
||||||
kernelParams = ["i915.modeset=1"];
|
kernelParams = [ "i915.modeset=1" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware = {
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
graphics = {
|
|
||||||
enable = lib.mkDefault true;
|
|
||||||
enable32Bit = lib.mkDefault true;
|
|
||||||
};
|
|
||||||
nvidia = {
|
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
|
||||||
modesetting.enable = lib.mkDefault true;
|
|
||||||
open = lib.mkDefault false;
|
|
||||||
prime = {
|
|
||||||
intelBusId = "PCI:0:2:0";
|
|
||||||
nvidiaBusId = "PCI:1:0:0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
hardware.nvidia.prime = {
|
||||||
|
intelBusId = "PCI:0:2:0";
|
||||||
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue