summaryrefslogtreecommitdiff
path: root/common.nix
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2023-01-15 21:44:28 +0100
committerChristoph Cullmann <cullmann@kde.org>2023-01-15 21:44:28 +0100
commite85e25cb7bdddba81995244ef5d58556ef3e64a5 (patch)
treebe62324eb84b2287ae9af11475592e78e2f4f2a6 /common.nix
parent55ccddb352a309a0ff61aa0de6ef494a85b38b71 (diff)
better powersaving
Diffstat (limited to 'common.nix')
-rw-r--r--common.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/common.nix b/common.nix
index 998dd4b..edf17d1 100644
--- a/common.nix
+++ b/common.nix
@@ -126,8 +126,10 @@ in
# ensure we see the journal on TTY12
services.journald.console = "/dev/tty12";
- # enjoy a fast machine
- powerManagement.cpuFreqGovernor = "performance";
+ # keep power consumption and heat in check
+ powerManagement.enable = true;
+ powerManagement.cpuFreqGovernor = "powersave";
+ services.thermald.enable = true;
# allow firmware updates
services.fwupd.enable = true;
@@ -148,6 +150,7 @@ in
# use GDM and Wayland
enable = true;
displayManager.gdm.enable = true;
+ displayManager.gdm.autoSuspend = false;
displayManager.defaultSession = "plasmawayland";
};