Set up power profiles everywhere.
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
./services/desktopmanager.nix
|
./services/desktopmanager.nix
|
||||||
./services/displaymanager.nix
|
./services/displaymanager.nix
|
||||||
./services/nix-flatpak.nix
|
./services/nix-flatpak.nix
|
||||||
|
./services/power-profiles-daemon.nix
|
||||||
./services/sound.nix
|
./services/sound.nix
|
||||||
./system/bluetooth.nix
|
./system/bluetooth.nix
|
||||||
./system/bootloader.nix
|
./system/bootloader.nix
|
||||||
|
|||||||
3
nodes/hosts/common/services/power-profiles-daemon.nix
Normal file
3
nodes/hosts/common/services/power-profiles-daemon.nix
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{ pkgs, ...}: {
|
||||||
|
services.power-profiles-daemon.enable = "true";
|
||||||
|
}
|
||||||
@@ -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,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