mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-17 03:31:59 -05:00
build:update_flake
Version 362 -> 363: deno: ∅ → 2.5.6, +138840.2 KiB fzf: 0.66.1 → 0.67.0, +9.1 KiB hm_gdugdu.yaml: ∅ → ε kazumi: 1.8.7 → 1.8.8, +139.2 KiB libblockdev: 3.3.0 → 3.4.0 mesa: -21448.4 KiB nixos-system-dos: 25.11.20251116.50a96ed → 25.11.20251117.89c2b23 python3.13-python-xapp: 2.4.2 → 3.0.0, +84.9 KiB python3.13-yt-dlp-ejs: ∅ → 0.3.1, +173.2 KiB scx_full: 1.0.17 → 1.0.18, +707.0 KiB source: -334.4 KiB starship: 1.24.0 → 1.24.1, +17.5 KiB yt-dlp: 2025.10.22 → 2025.11.12, +329.9 KiB add:yazi remove:vscode add:nvim_mdview feat:Power-control
This commit is contained in:
23
modules/services/power.nix
Normal file
23
modules/services/power.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ hostname, lib, pkgs, ... }:
|
||||
with lib; let
|
||||
inherit (import ../../hosts/${hostname}/env.nix) Power-control;
|
||||
in
|
||||
{
|
||||
services.power-profiles-daemon.enable = (Power-control == "PPD");
|
||||
|
||||
services.tlp = lib.mkIf (Power-control == "TLP") {
|
||||
enable = true;
|
||||
settings = {
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
|
||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "powersave";
|
||||
|
||||
CPU_MIN_PERF_ON_AC = 0;
|
||||
CPU_MAX_PERF_ON_AC = 100;
|
||||
CPU_MIN_PERF_ON_BAT = 0;
|
||||
CPU_MAX_PERF_ON_BAT = 85;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user