From f28ca55d5316bd51c5f7a79375605aee5ca240d0 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 22 Aug 2024 06:23:03 -0300 Subject: system.scm: Add 8GiB /swapfile --- src/guix/system.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/guix/system.scm b/src/guix/system.scm index 4df668e..3a78ddc 100644 --- a/src/guix/system.scm +++ b/src/guix/system.scm @@ -172,6 +172,18 @@ %base-file-systems)) (swap-devices (list + (swap-space + ;; # rm -f /swapfile + ;; # truncate -s 0 /swapfile + ;; # chattr +C /swapfile + ;; # fallocate -l 8G /swapfile + ;; # chmod 600 /swapfile + ;; # mkswap /swapfile + ;; # swapon /swapfile + (target "/swapfile") + (dependencies + (filter (file-system-mount-point-predicate "/") + file-systems))) (swap-space (target (uuid "94b47d91-3542-438a-84a9-859fe347ce09")))))) -- cgit v1.2.3