mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-08 11:36:10 +01:00
TLP is often no longer the best choice since firmware provides power profiles instead. That's why we are removing TLP as the default option. We may want to bring back TLP to some old hardware if it makes sense i.e. certain thinkpad modules.
35 lines
911 B
Nix
35 lines
911 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
../../../common/cpu/amd
|
|
../../../common/cpu/amd/pstate.nix
|
|
../../../common/gpu/amd
|
|
../../../common/gpu/nvidia
|
|
../../../common/pc/laptop
|
|
../../../common/pc/ssd
|
|
];
|
|
|
|
# Use latest LTS kernel for more Raphael fixes
|
|
boot = lib.mkMerge [
|
|
(lib.mkIf (lib.versionOlder pkgs.linux.version "6.6") {
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
kernelParams = [ "amdgpu.sg_display=0" ];
|
|
})
|
|
];
|
|
|
|
hardware.nvidia = {
|
|
modesetting.enable = lib.mkDefault true;
|
|
powerManagement.enable = lib.mkDefault false;
|
|
powerManagement.finegrained = lib.mkDefault false;
|
|
open = lib.mkDefault false;
|
|
prime = {
|
|
sync.enable = lib.mkDefault true;
|
|
amdgpuBusId = "PCI:5:0:0";
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
};
|
|
};
|
|
|
|
# Avoid issues with modesetting causing blank screen
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
}
|