From 5bcd431bfbd632fdebbe0dec045c0e6867e3e135 Mon Sep 17 00:00:00 2001 From: jay Date: Sun, 3 Aug 2025 10:56:00 -0400 Subject: [PATCH] Set up power profiles from battery hyprpanel. --- .../common/home/jay/programs/hyprpanel.nix | 2 +- nodes/hosts/nixwork/configuration.nix | 3 --- .../nixwork/home/jay/programs/hyprpanel.nix | 6 ------ nodes/hosts/nixwork/programs/auto-cpufreq.nix | 18 ------------------ .../nixwork/services/power-profiles-daemon.nix | 3 --- 5 files changed, 1 insertion(+), 31 deletions(-) delete mode 100644 nodes/hosts/nixwork/programs/auto-cpufreq.nix delete mode 100644 nodes/hosts/nixwork/services/power-profiles-daemon.nix diff --git a/nodes/hosts/common/home/jay/programs/hyprpanel.nix b/nodes/hosts/common/home/jay/programs/hyprpanel.nix index 1a6aefd..cbe54c5 100644 --- a/nodes/hosts/common/home/jay/programs/hyprpanel.nix +++ b/nodes/hosts/common/home/jay/programs/hyprpanel.nix @@ -6,7 +6,7 @@ "0" = { left = [ "dashboard" "separator" "microphone" "volume" "bluetooth" "hypridle" "separator" "network" "separator" "workspaces" "windowtitle" ]; 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" ]; }; }; diff --git a/nodes/hosts/nixwork/configuration.nix b/nodes/hosts/nixwork/configuration.nix index c4950a7..90e7f15 100644 --- a/nodes/hosts/nixwork/configuration.nix +++ b/nodes/hosts/nixwork/configuration.nix @@ -9,13 +9,10 @@ [ # Include the results of the hardware scan. ./hardware-configuration.nix inputs.nixos-hardware.nixosModules.framework-16-7040-amd - inputs.auto-cpufreq.nixosModules.default - ./programs/auto-cpufreq.nix ./programs/sof-firmware.nix # Not working yet. ./services/fprintd.nix ./services/lidswitch.nix - ./services/power-profiles-daemon.nix ./services/touchpad.nix ./system/bootloader.nix ./system/filesystems.nix diff --git a/nodes/hosts/nixwork/home/jay/programs/hyprpanel.nix b/nodes/hosts/nixwork/home/jay/programs/hyprpanel.nix index 87ae744..ffde070 100644 --- a/nodes/hosts/nixwork/home/jay/programs/hyprpanel.nix +++ b/nodes/hosts/nixwork/home/jay/programs/hyprpanel.nix @@ -1,12 +1,6 @@ { lib, ... }: { programs.hyprpanel = { settings = { - "bar.layouts" = { - "0" = { - right = [ "battery" ]; - }; - }; - bar = { customModules = { cava = { diff --git a/nodes/hosts/nixwork/programs/auto-cpufreq.nix b/nodes/hosts/nixwork/programs/auto-cpufreq.nix deleted file mode 100644 index 56ea8e0..0000000 --- a/nodes/hosts/nixwork/programs/auto-cpufreq.nix +++ /dev/null @@ -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"; - }; - }; - }; -} - diff --git a/nodes/hosts/nixwork/services/power-profiles-daemon.nix b/nodes/hosts/nixwork/services/power-profiles-daemon.nix deleted file mode 100644 index b450283..0000000 --- a/nodes/hosts/nixwork/services/power-profiles-daemon.nix +++ /dev/null @@ -1,3 +0,0 @@ -{ pkgs, ...}: { - # services.power-profiles-daemon.enable = "true"; -}