Set up power profiles everywhere.

This commit is contained in:
jay
2025-08-03 07:56:55 -04:00
parent 720f0bcb63
commit 7ebbaca081
5 changed files with 4 additions and 24 deletions

View File

@@ -26,6 +26,7 @@
./services/desktopmanager.nix
./services/displaymanager.nix
./services/nix-flatpak.nix
./services/power-profiles-daemon.nix
./services/sound.nix
./system/bluetooth.nix
./system/bootloader.nix

View File

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

View File

@@ -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

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";
}