From 41c68cb4fe210fc57fceba859cdecfaae204ca1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Mon, 24 Nov 2025 11:40:52 +0800 Subject: [PATCH] vanadium: don't suspend at all --- nix/configurations/vanadium/nixos/battery.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/nix/configurations/vanadium/nixos/battery.nix b/nix/configurations/vanadium/nixos/battery.nix index 57ca236a..95eda6f8 100644 --- a/nix/configurations/vanadium/nixos/battery.nix +++ b/nix/configurations/vanadium/nixos/battery.nix @@ -1,11 +1,7 @@ { - systemd.sleep.extraConfig = '' - HibernateDelaySec=1d - ''; - services.logind = { - powerKey = "hibernate"; - lidSwitch = "suspend-then-hibernate"; + # Note: vanadium's btrfs disk layout has been changed and the swap has been reduced. It will not work with hibernate anymore. + lidSwitch = "suspend"; lidSwitchDocked = "ignore"; }; }