format with nixfmt to nixpkgs standarts
nix flake show / show-flake (push) Successful in 27s

This commit is contained in:
smayzy
2025-07-24 19:19:46 +02:00
parent 8ce74dd7bf
commit 092579af98
56 changed files with 438 additions and 218 deletions
+15 -7
View File
@@ -1,7 +1,15 @@
{ config, lib, ... }:
let
inherit (lib) mkIf mkOption types mkMerge;
validOptions = [ "desktop" "laptop" ];
inherit (lib)
mkIf
mkOption
types
mkMerge
;
validOptions = [
"desktop"
"laptop"
];
in
{
options.smayzy.power = mkOption {
@@ -17,8 +25,8 @@ in
enable = true;
settings = {
charger = {
governor = "performance";
turbo = "auto";
governor = "performance";
turbo = "auto";
};
};
};
@@ -32,15 +40,15 @@ in
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 100;
STOP_CHARGE_THRESH_BAT0 = 95;
};
};