From 671c558473997afd6754f22be41232c905f356a3 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Fri, 24 Oct 2025 09:45:15 +0200 Subject: [PATCH] prevent automatic suspend --- hosts/nixos/thinkpad/system.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hosts/nixos/thinkpad/system.nix b/hosts/nixos/thinkpad/system.nix index 933ebc1..4d07f98 100644 --- a/hosts/nixos/thinkpad/system.nix +++ b/hosts/nixos/thinkpad/system.nix @@ -121,6 +121,15 @@ yelp # help viewer ]; + # Prevent automatic suspend on AC power (GNOME power settings) + programs.dconf.profiles.user.databases = [{ + settings = { + "org/gnome/settings-daemon/plugins/power" = { + sleep-inactive-ac-type = "nothing"; + }; + }; + }]; + # XDG portal for proper desktop integration xdg.portal = { enable = true;