Set up power profiles from battery hyprpanel.
This commit is contained in:
@@ -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" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
{ lib, ... }: {
|
{ lib, ... }: {
|
||||||
programs.hyprpanel = {
|
programs.hyprpanel = {
|
||||||
settings = {
|
settings = {
|
||||||
"bar.layouts" = {
|
|
||||||
"0" = {
|
|
||||||
right = [ "battery" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
bar = {
|
bar = {
|
||||||
customModules = {
|
customModules = {
|
||||||
cava = {
|
cava = {
|
||||||
|
|||||||
@@ -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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{ pkgs, ...}: {
|
|
||||||
# services.power-profiles-daemon.enable = "true";
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user