some hyprland configs and other stuff
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# # Возможно проблемы с оптимизацией USB (лагает клавиатура/мышь)
|
||||
|
||||
{ config, lib, vars, ... }:
|
||||
let
|
||||
cfg = config.custom;
|
||||
@@ -12,7 +14,8 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.battery.enable {
|
||||
# config = lib.mkIf cfg.battery.enable {
|
||||
config = {
|
||||
boot.kernelParams = [ "amd_pstate=active" ];
|
||||
|
||||
powerManagement.powertop.enable =
|
||||
@@ -20,8 +23,8 @@ in {
|
||||
|
||||
services.system76-scheduler.settings.cfsProfiles.enable =
|
||||
true; # Better scheduling for CPU cycles - thanks System76!!!
|
||||
services.thermald.enable =
|
||||
true; # Enable thermald, the temperature management daemon. (only necessary if on Intel CPUs)
|
||||
# services.thermald.enable =
|
||||
# true; # Enable thermald, the temperature management daemon. (only necessary if on Intel CPUs)
|
||||
services.power-profiles-daemon.enable =
|
||||
false; # Disable GNOMEs power management
|
||||
services.tlp = {
|
||||
@@ -38,7 +41,7 @@ in {
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
||||
|
||||
AMDGPU_ABM_LEVEL_ON_AC = 0;
|
||||
AMDGPU_ABM_LEVEL_ON_BAT = 3;
|
||||
AMDGPU_ABM_LEVEL_ON_BAT = 0;
|
||||
PLATFORM_PROFILE_ON_AC = "performance";
|
||||
PLATFORM_PROFILE_ON_BAT = "low-power";
|
||||
PCIE_ASPM_ON_BAT = "powersupersave";
|
||||
@@ -50,13 +53,13 @@ in {
|
||||
SOUND_POWER_SAVE_ON_BAT = 1;
|
||||
SOUND_POWER_SAVE_CONTROLLER = "Y";
|
||||
CPU_MAX_PERF_ON_AC = 100;
|
||||
CPU_MAX_PERF_ON_BAT = 10;
|
||||
CPU_MAX_PERF_ON_BAT = 50;
|
||||
NMI_WATCHDOG = 0;
|
||||
|
||||
USB_AUTOSUSPEND = 1;
|
||||
USB_AUTOSUSPEND = 0;
|
||||
USB_BLACKLIST_BTUSB = 0;
|
||||
START_CHARGE_THRESH_BAT0 = 70;
|
||||
STOP_CHARGE_THRESH_BAT0 = 86;
|
||||
START_CHARGE_THRESH_BAT0 = 0;
|
||||
STOP_CHARGE_THRESH_BAT0 = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user