mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
39 lines
694 B
Nix
Executable file
39 lines
694 B
Nix
Executable file
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
hardware = {
|
|
firmware = builtins.attrValues {
|
|
inherit (pkgs)
|
|
rtl8761b-firmware
|
|
;
|
|
};
|
|
enableAllFirmware = true;
|
|
ledger.enable = true;
|
|
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
};
|
|
|
|
services.power-profiles-daemon.enable = false;
|
|
|
|
powerManagement.cpuFreqGovernor = "performance";
|
|
|
|
boot.kernelParams = [ "amd_pstate=active" ];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
lm_sensors
|
|
htop
|
|
];
|
|
|
|
services.auto-cpufreq = {
|
|
enable = true;
|
|
settings = {
|
|
charger = {
|
|
governor = "performance";
|
|
turbo = "auto";
|
|
};
|
|
};
|
|
};
|
|
}
|