hosaka: add 8 GB disk swapfile #3

Merged
greg merged 1 commit from feat/hosaka-swapfile into master 2026-05-30 21:37:27 -05:00
Owner

Adds a declarative 8 GB swapfile at /var/lib/swapfile.

systemd-oomd warned about missing swap. 31 GB RAM is enough for typical ham shack workload, but giving the kernel somewhere to spill cold pages under true memory pressure removes the warning and improves resilience.

XFS supports swapfiles natively; nothing to format manually. NixOS creates and activates the file on next rebuild.

Apply:

sudo nixos-rebuild switch --flake .#hosaka

Verify:

swapon --show
free -h
Adds a declarative 8 GB swapfile at `/var/lib/swapfile`. systemd-oomd warned about missing swap. 31 GB RAM is enough for typical ham shack workload, but giving the kernel somewhere to spill cold pages under true memory pressure removes the warning and improves resilience. XFS supports swapfiles natively; nothing to format manually. NixOS creates and activates the file on next rebuild. **Apply:** ``` sudo nixos-rebuild switch --flake .#hosaka ``` **Verify:** ``` swapon --show free -h ```
Adds a declarative 8 GB swapfile at /var/lib/swapfile.

systemd-oomd warned about missing swap. 31 GB RAM is enough for typical
ham shack workload, but giving the kernel somewhere to spill cold pages
under true memory pressure removes the warning and improves resilience.

XFS supports swapfiles natively; nothing to format manually.
NixOS creates and activates the file on next rebuild.

Apply: sudo nixos-rebuild switch --flake .#hosaka
greg merged commit 5ecc593291 into master 2026-05-30 21:37:27 -05:00
greg deleted branch feat/hosaka-swapfile 2026-05-30 21:37:27 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
greg/nixos-config!3
No description provided.