From 60e5d9bd4fa946d1cdb81305fdf9096c835e8aec Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Tue, 19 Nov 2024 16:04:18 -0500 Subject: [PATCH] fix(nix): use swapfile Signed-off-by: Lucas Sta Maria --- nix/hosts/framework/sys.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/hosts/framework/sys.nix b/nix/hosts/framework/sys.nix index 47ee65a..106651a 100644 --- a/nix/hosts/framework/sys.nix +++ b/nix/hosts/framework/sys.nix @@ -71,6 +71,12 @@ powerKey = "ignore"; }; + # Swap + swapDevices = [ { + device = "/var/lib/swap"; + size = 16 * 1024; + } ]; + # Autologin services.displayManager.autoLogin.user = "priime";