mirror of
https://github.com/Username404-59/Dotfiles-NixOS.git
synced 2026-07-03 21:08:08 +02:00
43 lines
940 B
Nix
43 lines
940 B
Nix
{ config, lib, pkgs, functions, ...}:
|
|
|
|
{
|
|
|
|
boot.extraModulePackages = with config.boot.kernelPackages; [
|
|
(functions.mkPatchedAuto nct6687d)
|
|
r8125
|
|
];
|
|
|
|
boot.kernelModules = [
|
|
"nct6687" # d disappears in actual module name
|
|
"r8125" # replaces r8169
|
|
];
|
|
|
|
boot.blacklistedKernelModules = [
|
|
"r8169"
|
|
];
|
|
|
|
# CRU screen overclocking
|
|
hardware.firmware = [
|
|
(pkgs.runCommandLocal "PHL-edid-77hz" {} ''
|
|
mkdir -p $out/lib/firmware/edid
|
|
cp ${/disk2/Bunker/CRU/PHL_243V5_OC_77MHZ.bin} $out/lib/firmware/edid/PHL_243V5_OC_77MHZ.bin
|
|
'')
|
|
];
|
|
|
|
boot.kernelParams = [
|
|
"drm.edid_firmware=HDMI-A-4:edid/PHL_243V5_OC_77MHZ.bin"
|
|
];
|
|
|
|
programs.coolercontrol.enable = true;
|
|
|
|
boot.loader.limine.extraEntries = ''
|
|
/Windows
|
|
protocol: efi
|
|
path: label(windows_efi):/EFI/Microsoft/Boot/bootmgfw.efi
|
|
'';
|
|
|
|
powerManagement.cpuFreqGovernor = "performance";
|
|
|
|
networking.hostName = "lizard";
|
|
}
|