diff --git a/flake.lock b/flake.lock index 857c614..0e2abe2 100644 --- a/flake.lock +++ b/flake.lock @@ -165,11 +165,11 @@ ] }, "locked": { - "lastModified": 1767104570, - "narHash": "sha256-GKgwu5//R+cLdKysZjGqvUEEOGXXLdt93sNXeb2M/Lk=", + "lastModified": 1767556355, + "narHash": "sha256-RDTUBDQBi9D4eD9iJQWtUDN/13MDLX+KmE+TwwNUp2s=", "owner": "nix-community", "repo": "home-manager", - "rev": "e4e78a2cbeaddd07ab7238971b16468cc1d14daf", + "rev": "f894bc4ffde179d178d8deb374fcf9855d1a82b7", "type": "github" }, "original": { @@ -201,11 +201,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1766902085, - "narHash": "sha256-coBu0ONtFzlwwVBzmjacUQwj3G+lybcZ1oeNSQkgC0M=", + "lastModified": 1767379071, + "narHash": "sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf+Okucw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "c0b0e0fddf73fd517c3471e546c0df87a42d53f4", + "rev": "fb7944c166a3b630f177938e478f0378e64ce108", "type": "github" }, "original": { @@ -269,11 +269,11 @@ "tinted-zed": "tinted-zed" }, "locked": { - "lastModified": 1766603026, - "narHash": "sha256-J2DDdRqSU4w9NNgkMfmMeaLIof5PXtS9RG7y6ckDvQE=", + "lastModified": 1767559556, + "narHash": "sha256-Pf1d9Hh9UUQ/oS+evq6dU0MiaDczXXNztTlQekaMbW0=", "owner": "danth", "repo": "stylix", - "rev": "551df12ee3ebac52c5712058bd97fd9faa4c3430", + "rev": "b135edbdd403896d1ef507934c045f716deb5609", "type": "github" }, "original": { diff --git a/modules/services/power.nix b/modules/services/power.nix index aa4fa6f..ae145c9 100644 --- a/modules/services/power.nix +++ b/modules/services/power.nix @@ -1,5 +1,6 @@ { hostname, lib, pkgs, ... }: -with lib; let +with lib; +let inherit (import ../../hosts/${hostname}/env.nix) Power-control; in { @@ -7,17 +8,18 @@ in services.tlp = lib.mkIf (Power-control == "TLP") { enable = true; + settings = { - CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_AC = "powersave"; CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; - CPU_ENERGY_PERF_POLICY_ON_BAT = "powersave"; + CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power"; CPU_MIN_PERF_ON_AC = 0; CPU_MAX_PERF_ON_AC = 100; CPU_MIN_PERF_ON_BAT = 0; - CPU_MAX_PERF_ON_BAT = 85; + CPU_MAX_PERF_ON_BAT = 100; }; }; } diff --git a/modules/system/environment.nix b/modules/system/environment.nix index b06e8c3..a690083 100644 --- a/modules/system/environment.nix +++ b/modules/system/environment.nix @@ -97,7 +97,7 @@ in { # Agent opencode - gemini-cli + gemini-cli-bin ]; };