From 616bb04d12cf825f012085ac2fe69472b052938a Mon Sep 17 00:00:00 2001 From: Soispha Date: Tue, 11 Jul 2023 13:08:41 +0200 Subject: Fix(system/disks/hibernation): Circumvent memory checks The swap file only becomes active when the hibernation is started, thus checking for size beforehand is useless. --- system/disks/hibernate.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/disks/hibernate.nix') diff --git a/system/disks/hibernate.nix b/system/disks/hibernate.nix index 5bb0f8d5..26dd223a 100644 --- a/system/disks/hibernate.nix +++ b/system/disks/hibernate.nix @@ -36,7 +36,7 @@ ExecStart = "${pkgs.util-linux}/bin/swapoff /swap/swapfile"; }; }; - #systemd-hibernate.serviceConfig.Environment = "SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1"; - #systemd-logind.serviceConfig.Environment = "SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1"; + systemd-hibernate.serviceConfig.Environment = "SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1"; + systemd-logind.serviceConfig.Environment = "SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1"; }; } -- cgit 1.4.1