From 40ea3c1b3cc7bb85d5e3b4d4a0eec22a300b1f00 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 18 Jul 2024 13:01:23 -0400 Subject: [PATCH] phone(dconf): Suspend on battery only Suspend *significantly* increases the battery life of the phone at the cost of not receiving internet-based notifications. --- hosts/phone/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/phone/configuration.nix b/hosts/phone/configuration.nix index 9b51a61e..0b37c04e 100644 --- a/hosts/phone/configuration.nix +++ b/hosts/phone/configuration.nix @@ -60,6 +60,11 @@ in image-gallery = true; sidebar = false; }; + + "org/gnome/settings-daemon/plugins/power" = { + sleep-inactive-ac-type = "nothing"; + sleep-inactive-battery-type = "suspend"; + }; }; }; };