ソースを参照

fix battery stuff and powerplan idk?

Johan Rong 4 週間 前
親
コミット
c082aba41f

+ 0 - 8
home/modules/system/home-base.nix

@@ -10,13 +10,5 @@ in
     username = users.default;
     homeDirectory = "/home/${users.default}";
     stateVersion = "26.05";
-
-    file.".mozilla/native-messaging-hosts/com.8bit.bitwarden.json".text = builtins.toJSON {
-      name = "com.8bit.bitwarden";
-      description = "Bitwarden desktop <-> browser bridge";
-      path = "${pkgs.bitwarden-desktop}/bin/bitwarden";
-      type = "stdio";
-      allowed_extensions = [ "{446900e4-71c2-419f-a6a7-df9c091e268b}" ]; # Official Bitwarden Firefox Extension ID
-    };
   };
 }

+ 4 - 3
nixos/modules/hardware/power/battery.nix

@@ -5,17 +5,18 @@
 
   services.tlp = {
     enable = true;
-    pd.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 = "power";
+
       PLATFORM_PROFILE_ON_AC = "performance";
       PLATFORM_PROFILE_ON_BAT = "low-power";
 
-      START_CHARGE_THRESH_BAT0 = 0;
+      START_CHARGE_THRESH_BAT0 = 75;
       STOP_CHARGE_THRESH_BAT0 = 80;
     };
   };