From 9f0ec71f2aa75b9335ea2a9af293a78145aaafab Mon Sep 17 00:00:00 2001 From: oqyude Date: Thu, 12 Nov 2026 06:04:27 +0300 Subject: [PATCH] =?UTF-8?q?rydiwo:=20restore=206=20GiB=20/swapfile=20in=20?= =?UTF-8?q?config=20=E2=80=94=20that=20switch=20never=20happened?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reverts 0ae07a3. That commit shrank the swap file to 0.5 GiB for one reason only: so a pending `nixos-rebuild switch` would fit in the free space. The switch turned out to be impossible for an unrelated reason — nixpkgs' linuxPackages_xanmod_stable cannot apply tools-add-128-bit-integer-types-for-aarch64.patch ("Reversed (or previously applied) patch detected" in linux-config-7.3.3) — so the update was never applied. The 6 GiB swap file is already back on disk and active (`swapon --show`), so the config has to match the disk again: `size = 6144`, and the TEMPORARY comment that only explained the shrink is gone. The 2026-11-11 note about the originally missing swapDevices stays as it is. --- configurations/mini-laptop.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/configurations/mini-laptop.nix b/configurations/mini-laptop.nix index 724ef45..85a7774 100644 --- a/configurations/mini-laptop.nix +++ b/configurations/mini-laptop.nix @@ -79,10 +79,6 @@ system.stateVersion = "26.05"; - # TEMPORARY 2026-11-12: the box has 20 GiB free and the pending - # `nixos-rebuild switch` needs 22.2 GiB unpacked, so the 6 GiB swap file is - # shrunk to 0.5 GiB to make the build fit; it goes back to 6144 after the - # switch and the garbage collection that follows. Not a permanent choice. # Measured 2026-11-11: a 6 GiB /swapfile exists and is active, but only # because somebody ran `swapon` by hand — there is no swapDevices in the # config and no swap line in the generated /etc/fstab, so a reboot loses @@ -91,7 +87,7 @@ swapDevices = [ { device = "/swapfile"; - size = 512; + size = 6144; } ];