From d8847a56a7492a601ee3abf6e8f7ef23cee42110 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Fri, 20 Sep 2024 20:15:53 +0000 Subject: [PATCH] adding swap --- configuration.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index aec9ce4..b7a53b7 100644 --- a/configuration.nix +++ b/configuration.nix @@ -4,7 +4,6 @@ imports = [ ./hardware-configuration.nix - ./work.nix ]; # Latest kernel @@ -29,6 +28,11 @@ options = "--delete-older-than 1w"; }; + swapDevices = [ { + device = "/var/lib/swapfile"; + size = 16*1024; + } ]; + zramSwap.enable = true; networking.networkmanager.enable = true;