From b12f7b047029e16f3b75f979df80fc769ff409d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Sat, 3 May 2025 14:39:51 +0200 Subject: [PATCH] feat(void): enable swap --- hardware-configuration-void.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hardware-configuration-void.nix b/hardware-configuration-void.nix index 8790547..5837368 100644 --- a/hardware-configuration-void.nix +++ b/hardware-configuration-void.nix @@ -33,7 +33,12 @@ options = ["fmask=0022" "dmask=0022"]; }; - swapDevices = []; + swapDevices = [{ + device = "/swapfile"; + # 16 GB swap + size = 16 * 1024; + }]; + zramSwap.enable = true; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's