diff options
author | Soispha <soispha@vhack.eu> | 2023-07-11 13:08:41 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-07-11 13:08:41 +0200 |
commit | 616bb04d12cf825f012085ac2fe69472b052938a (patch) | |
tree | 0db10dee586daaabd639f37290dee63a9b54ba20 /system/disks | |
parent | Fix(bootstrap/install): Removed usage of unassigned variable (diff) | |
download | nixos-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.nix | 4 |
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"; }; } |