From 6a3043d883af1c868a5cde2ee53bc7f051fc0770 Mon Sep 17 00:00:00 2001 From: clerie Date: Mon, 10 Jul 2023 23:57:49 +0200 Subject: [PATCH] hosts/krypton: fix hibernate --- hosts/krypton/configuration.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/krypton/configuration.nix b/hosts/krypton/configuration.nix index 63fcd57..42f225b 100644 --- a/hosts/krypton/configuration.nix +++ b/hosts/krypton/configuration.nix @@ -24,7 +24,8 @@ }; }; - boot.kernel.sysctl."vm.swappiness" = 0; + # https://wiki.clerie.de/notiz/pm-hibernation-image-allocation-is-97054-pages-short + boot.kernel.sysctl."vm.swappiness" = 1; networking.hostName = "krypton";