1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 03:19:42 +01:00

dell-precision-5560: init

This commit is contained in:
Matei Dibu 2024-09-12 19:20:09 +03:00
parent 166dee4f88
commit 06c46e3902
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{
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
];
hardware.enableRedistributableFirmware = lib.mkDefault true;
boot = {
blacklistedKernelModules = ["nouveau"];
kernelModules = ["kvm-intel"];
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 = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};
};
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
}

View file

@ -67,6 +67,7 @@
dell-poweredge-r7515 = import ./dell/poweredge/r7515; dell-poweredge-r7515 = import ./dell/poweredge/r7515;
dell-precision-3541 = import ./dell/precision/3541; dell-precision-3541 = import ./dell/precision/3541;
dell-precision-5530 = import ./dell/precision/5530; dell-precision-5530 = import ./dell/precision/5530;
dell-precision-5560 = import ./dell/precision/5560;
dell-precision-7520 = import ./dell/precision/7520; dell-precision-7520 = import ./dell/precision/7520;
dell-xps-13-7390 = import ./dell/xps/13-7390; dell-xps-13-7390 = import ./dell/xps/13-7390;
dell-xps-13-9300 = import ./dell/xps/13-9300; dell-xps-13-9300 = import ./dell/xps/13-9300;