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