From cb07f1b1f83996b107118c14d1986ce03c0d6216 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Thu, 29 Aug 2024 18:53:09 +0530 Subject: common: enable swap thanks for convincing me https://chrisdown.name/2018/01/02/in-defence-of-swap.html --- os/cez/hardware-configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'os/cez') diff --git a/os/cez/hardware-configuration.nix b/os/cez/hardware-configuration.nix index 056f65a..90a73b9 100644 --- a/os/cez/hardware-configuration.nix +++ b/os/cez/hardware-configuration.nix @@ -11,6 +11,11 @@ hardware.amdgpu.initrd.enable = false; services.xserver.videoDrivers = [ "modesetting" ]; + swapDevices = [{ + device = "/swapfile"; + size = 14 * 1024; # 14GB + }]; + boot = { loader.systemd-boot.enable = true; blacklistedKernelModules = [ "k10temp" ]; -- cgit v1.2.3