Compare commits

...

2 commits

Author SHA1 Message Date
4ac9491466 tweaks 2026-02-15 09:24:09 +07:00
933811ad5b cpu scaling bug temp fix and update 2026-02-15 09:24:02 +07:00
4 changed files with 33 additions and 20 deletions

18
flake.lock generated
View file

@ -5,11 +5,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1770388745, "lastModified": 1770551880,
"narHash": "sha256-tmAONUMNHnlkozNcMR1kZJ/68OGea5wS56vl6vaUS5U=", "narHash": "sha256-+cS5yXWsSLiK36+PP/+dcQdxpXSclx2d65p7l6Dis+A=",
"owner": "catppuccin", "owner": "catppuccin",
"repo": "nix", "repo": "nix",
"rev": "5e9efb97caeffea3bf248023b6d8b68e63b839b9", "rev": "db4dfe3f2a80e9c33492d839accd49f75c7324c2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -62,11 +62,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1770491427, "lastModified": 1771037579,
"narHash": "sha256-8b+0vixdqGnIIcgsPhjdX7EGPdzcVQqYxF+ujjex654=", "narHash": "sha256-NX5XuhGcsmk0oEII2PEtMRgvh2KaAv3/WWQsOpxAgR4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "cbd8a72e5fe6af19d40e2741dc440d9227836860", "rev": "05e6dc0f6ed936f918cb6f0f21f1dad1e4c53150",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -109,11 +109,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1770197578, "lastModified": 1771008912,
"narHash": "sha256-AYqlWrX09+HvGs8zM6ebZ1pwUqjkfpnv8mewYwAo+iM=", "narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "00c21e4c93d963c50d4c0c89bfa84ed6e0694df2", "rev": "a82ccc39b39b621151d6732718e3e250109076fa",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -2,20 +2,31 @@
services = { services = {
thermald.enable = false; thermald.enable = false;
throttled.enable = true; throttled.enable = true;
power-profiles-daemon.enable = true; # replacement for tlp and auto-cpufreq due to bugs
tlp = { tlp = {
enable = true; enable = false; # buggy and inconsistent with frequency scaling
settings = { settings = {
TLP_DEFAULT_MODE = "BAL"; TLP_DEFAULT_MODE = "BAL";
CPU_SCALING_GOVERNOR_ON_PRF = "performance"; CPU_SCALING_GOVERNOR_ON_PRF = "performance";
CPU_ENERGY_PERF_POLICY_ON_PRF = "performance"; CPU_ENERGY_PERF_POLICY_ON_PRF = "performance";
CPU_BOOST_ON_PRF = "1"; CPU_BOOST_ON_PRF = "1";
CPU_MAX_FREQ_ON_PRF = "3600000";
CPU_MIN_FREQ_ON_PRF = "100000";
CPU_MIN_PERF_ON_PRF = "40";
CPU_MAX_PERF_ON_PRF = "100";
PLATFORM_PROFILE_ON_PRF = "performance"; PLATFORM_PROFILE_ON_PRF = "performance";
MEM_SLEEP_ON_PRF = "s2idle";
CPU_SCALING_GOVERNOR_ON_BAL = "powersave"; CPU_SCALING_GOVERNOR_ON_BAL = "powersave";
CPU_ENERGY_PERF_POLICY_ON_BAL = "balance_power"; CPU_ENERGY_PERF_POLICY_ON_BAL = "balance_power";
CPU_BOOST_ON_BAL = "0"; CPU_BOOST_ON_BAL = "0";
CPU_MAX_FREQ_ON_BAL = "1700000";
CPU_MIN_FREQ_ON_BAL = "800000";
CPU_MIN_PERF_ON_BAL = "40";
CPU_MAX_PERF_ON_BAL = "80";
PLATFORM_PROFILE_ON_BAL = "balanced"; PLATFORM_PROFILE_ON_BAL = "balanced";
MEM_SLEEP_ON_BAL = "s2idle";
CPU_SCALING_GOVERNOR_ON_SAV = "powersave"; CPU_SCALING_GOVERNOR_ON_SAV = "powersave";
CPU_ENERGY_PERF_POLICY_ON_SAV = "power"; CPU_ENERGY_PERF_POLICY_ON_SAV = "power";
@ -39,7 +50,7 @@
}; };
}; };
auto-cpufreq = { auto-cpufreq = {
enable = false; # replaced with tlp until fix: https://github.com/AdnanHodzic/auto-cpufreq/issues/906 enable = false; # wait for fix: https://github.com/AdnanHodzic/auto-cpufreq/issues/906
settings = { settings = {
charger = { charger = {
governor = "performance"; governor = "performance";

View file

@ -21,12 +21,14 @@
autocd = true; autocd = true;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
envExtra = '' envExtra = ''
NIXPKGS_ALLOW_UNFREE=1 export NIXPKGS_ALLOW_UNFREE=1
WINEPREFIX="~/.wine" export NIXPKGS_ALLOW_INSECURE=1
WINEARCH="win64" export NH_FLAKE=${flake-path}
DISPLAY=":0" export WINEPREFIX="~/.wine"
EDITOR="nvim" export WINEARCH="win64"
PORT="3000" export DISPLAY=":0"
export EDITOR="nvim"
export PORT="3000"
''; '';
shellAliases = { shellAliases = {
"cd-gvfs" = "cd /run/user/$(id -u)/gvfs"; "cd-gvfs" = "cd /run/user/$(id -u)/gvfs";

View file

@ -258,9 +258,9 @@
font-weight: normal; font-weight: normal;
} }
.critical, .muted, .performance { color: @red; } .critical, .muted, .performance { border-color: @red; color: @red; }
.warning, .urgent, .disabled, .disconnected, .paused { color: @yellow; } .warning, .urgent, .disabled, .disconnected, .paused { border-color: @yellow; color: @yellow; }
.charging, .plugged, .power-saver { color: @green; } .charging, .plugged, .power-saver { border-color: @green; color: @green; }
''; '';
}; };
} }