From fb0b800420188e4776863babf21430fae6999398 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Mon, 10 Nov 2025 11:48:06 -0800 Subject: [PATCH] Add hibernate --- framework/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/framework/configuration.nix b/framework/configuration.nix index b2ddd88..79709a5 100644 --- a/framework/configuration.nix +++ b/framework/configuration.nix @@ -169,6 +169,14 @@ lidSwitch = "suspend"; }; + services.upower = { + enable = true; + percentageLow = 15; + percentageCritical = 5; + percentageAction = 3; + criticalPowerAction = "Hibernate"; + }; + # Enable sound with pipewire. services.pulseaudio.enable = false; security.rtkit.enable = true;