From fa9f084702ef905bea8a33d9f86d30dbc47bfc00 Mon Sep 17 00:00:00 2001 From: yaroslav Date: Sat, 9 May 2026 13:21:06 +0300 Subject: [PATCH] added hibernation to Ratchet --- hosts/Ratchet/hardware-Ratchet.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hosts/Ratchet/hardware-Ratchet.nix b/hosts/Ratchet/hardware-Ratchet.nix index d5869ef..70241a2 100644 --- a/hosts/Ratchet/hardware-Ratchet.nix +++ b/hosts/Ratchet/hardware-Ratchet.nix @@ -61,8 +61,10 @@ services.nfs.server.enable = true; - swapDevices = [ ]; - + swapDevices = [ { device = "/dev/mapper/luks-swap"; } ]; + boot.kernel.sysctl."vm.swappiness" = 0; + boot.zfs.allowHibernation = true; + boot.zfs.forceImportRoot = false; boot.supportedFilesystems = [ "zfs" ]; networking.hostId = "63367a21";