about summary refs log tree commit diff
path: root/profiles/laptop.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-05-07 09:08:43 -0700
committerFranck Cuny <franck@fcuny.net>2023-05-07 09:08:43 -0700
commitadca4cf7d99908e7d4555e6d2d60eefaeeaf95b5 (patch)
tree4e137bac57919bbc525523f0bac4ff7a4977440d /profiles/laptop.nix
parentprofiles/xps9300: add more settings (diff)
downloadworld-adca4cf7d99908e7d4555e6d2d60eefaeeaf95b5.tar.gz
profiles/laptop: more tweaks
Diffstat (limited to 'profiles/laptop.nix')
-rw-r--r--profiles/laptop.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/profiles/laptop.nix b/profiles/laptop.nix
index 7fd5b98..9ae1742 100644
--- a/profiles/laptop.nix
+++ b/profiles/laptop.nix
@@ -4,10 +4,11 @@
     ./workstation.nix
   ];
 
+  services.logind.lidSwitch = "suspend-then-hibernate";
+  services.upower.enable = true;
   services.thermald.enable = true;
 
   services.tlp.enable = true;
-
   services.tlp.settings = {
     CPU_SCALING_GOVERNOR_ON_AC = "performance";
     CPU_SCALING_GOVERNOR_ON_BAT = "powersave";