From 4127c28ed6e7b7855f004bdb8da1614d3b1b49cd Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Mon, 3 Jun 2024 16:38:50 -0500 Subject: [PATCH] added powersaving role. --- roles/nixos/power-saving.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 roles/nixos/power-saving.nix diff --git a/roles/nixos/power-saving.nix b/roles/nixos/power-saving.nix new file mode 100644 index 0000000..d2899c3 --- /dev/null +++ b/roles/nixos/power-saving.nix @@ -0,0 +1,10 @@ +{ + config, + pkgs, + lib, + ... +}: { + powerManagement.powertop.enable = true; + powerManagement.enable = true; + powerManaagement.cpuFreqGovernor = "ondemand"; +}