about summary refs log tree commit diff stats
path: root/system/disks
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-11 13:08:41 +0200
committerSoispha <soispha@vhack.eu>2023-07-11 13:08:41 +0200
commit616bb04d12cf825f012085ac2fe69472b052938a (patch)
tree0db10dee586daaabd639f37290dee63a9b54ba20 /system/disks
parentFix(bootstrap/install): Removed usage of unassigned variable (diff)
downloadnixos-config-616bb04d12cf825f012085ac2fe69472b052938a.tar.gz
nixos-config-616bb04d12cf825f012085ac2fe69472b052938a.zip
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.
Diffstat (limited to '')
-rw-r--r--system/disks/hibernate.nix4
1 files changed, 2 insertions, 2 deletions
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";
   };
 }