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.
This commit is contained in:
1 parent
ae9c6502a2
commit
0ae07a3720
1 file changed
+5
-1
@@ -79,6 +79,10 @@
|
|||||||
|
|
||||||
system.stateVersion = "26.05";
|
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
|
# 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
|
# 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
|
# config and no swap line in the generated /etc/fstab, so a reboot loses
|
||||||
@@ -87,7 +91,7 @@
|
|||||||
swapDevices = [
|
swapDevices = [
|
||||||
{
|
{
|
||||||
device = "/swapfile";
|
device = "/swapfile";
|
||||||
size = 6144;
|
size = 512;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user