1
0
Fork 0
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:
Matei Dibu 2024-09-23 12:48:34 +03:00
parent 06c46e3902
commit c97623b428

View file

@ -1,14 +1,10 @@
{ lib, ... }:
{
config,
lib,
...
}: {
imports = [
../../../common/pc/laptop
../../../common/pc/laptop/ssd
../../../common/cpu/intel
../../../common/gpu/intel/tiger-lake
../../../common/gpu/nvidia/prime.nix
../../../common/gpu/nvidia/turing
];
@ -20,21 +16,10 @@
kernelParams = [ "i915.modeset=1" ];
};
hardware = {
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 = {
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};
};
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
}