Skip to content

Commit

Permalink
dell-precision-5560: init
Browse files Browse the repository at this point in the history
  • Loading branch information
matdibu committed Sep 12, 2024
1 parent 166dee4 commit af68a0f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions dell/precision/5560/default.nix
Original file line number Diff line number Diff line change
@@ -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";
}

0 comments on commit af68a0f

Please sign in to comment.