Set up power profiles from battery hyprpanel.

This commit is contained in:
jay
2025-08-03 10:56:00 -04:00
parent 7391b43d9a
commit 5bcd431bfb
5 changed files with 1 additions and 31 deletions

View File

@@ -6,7 +6,7 @@
"0" = { "0" = {
left = [ "dashboard" "separator" "microphone" "volume" "bluetooth" "hypridle" "separator" "network" "separator" "workspaces" "windowtitle" ]; left = [ "dashboard" "separator" "microphone" "volume" "bluetooth" "hypridle" "separator" "network" "separator" "workspaces" "windowtitle" ];
middle = [ "media" "cava" ]; middle = [ "media" "cava" ];
right = [ "cpu" "cputemp" "ram" "storage" "separator" "systray" "notifications" "separator" "weather" "clock" ]; right = [ "cpu" "cputemp" "ram" "storage" "separator" "systray" "notifications" "battery" "separator" "weather" "clock" ];
}; };
}; };

View File

@@ -9,13 +9,10 @@
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
inputs.nixos-hardware.nixosModules.framework-16-7040-amd inputs.nixos-hardware.nixosModules.framework-16-7040-amd
inputs.auto-cpufreq.nixosModules.default
./programs/auto-cpufreq.nix
./programs/sof-firmware.nix ./programs/sof-firmware.nix
# Not working yet. # Not working yet.
./services/fprintd.nix ./services/fprintd.nix
./services/lidswitch.nix ./services/lidswitch.nix
./services/power-profiles-daemon.nix
./services/touchpad.nix ./services/touchpad.nix
./system/bootloader.nix ./system/bootloader.nix
./system/filesystems.nix ./system/filesystems.nix

View File

@@ -1,12 +1,6 @@
{ lib, ... }: { { lib, ... }: {
programs.hyprpanel = { programs.hyprpanel = {
settings = { settings = {
"bar.layouts" = {
"0" = {
right = [ "battery" ];
};
};
bar = { bar = {
customModules = { customModules = {
cava = { cava = {

View File

@@ -1,18 +0,0 @@
{ pkgs, ... }: {
# List packages installed in system profile. To search, run:
# $ nix search wget
programs.auto-cpufreq = {
enable = false;
settings = {
charger = {
governor = "performance";
turbo = "auto";
};
battery = {
governor = "power-saver";
turbo = "never";
};
};
};
}

View File

@@ -1,3 +0,0 @@
{ pkgs, ...}: {
# services.power-profiles-daemon.enable = "true";
}