From b1048676c4a7ffd95e7cc739de749039128afc27 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Thu, 9 Oct 2025 20:46:55 +0200 Subject: [PATCH] feat(skadi): setup a swap file. --- modules/linux/nixos/general-services.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/linux/nixos/general-services.nix b/modules/linux/nixos/general-services.nix index e5376fc..ca19b03 100644 --- a/modules/linux/nixos/general-services.nix +++ b/modules/linux/nixos/general-services.nix @@ -24,5 +24,13 @@ enable = true; memoryPercent = 60; }; + + # Setup swapfile + swapDevices = [ + { + device = "/var/lib/swapfile"; + size = 32 * 1024; + } + ]; }; }