From 0ae07a37208f99d68cc06bccc699f00a4a6c359a Mon Sep 17 00:00:00 2001 From: oqyude Date: Thu, 12 Nov 2026 05:32:52 +0300 Subject: [PATCH] rydiwo: temporarily shrink /swapfile to 0.5 GiB so the switch fits The box has 20 GiB free and the pending nixos-rebuild switch needs 22.2 GiB unpacked. Shrinking the 6 GiB swap file to 512 MiB lets the build fit; it goes back to 6144 after the switch and the garbage collection that follows. --- configurations/mini-laptop.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configurations/mini-laptop.nix b/configurations/mini-laptop.nix index 85a7774..724ef45 100644 --- a/configurations/mini-laptop.nix +++ b/configurations/mini-laptop.nix @@ -79,6 +79,10 @@ 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 @@ -87,7 +91,7 @@ swapDevices = [ { device = "/swapfile"; - size = 6144; + size = 512; } ];