From c637b671f034e01623798e48a415d971430f4876 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 20 Aug 2024 06:43:24 -0300 Subject: system.scm: swapon /swapfile --- src/guix/system.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/guix/system.scm b/src/guix/system.scm index 418aa1b..7a75dee 100644 --- a/src/guix/system.scm +++ b/src/guix/system.scm @@ -141,6 +141,16 @@ %base-file-systems)) (swap-devices (list + (swap-space + ;; # rm /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 "fde5e4a8-acc2-4c9a-9712-5494724c2c04")))))) -- cgit v1.2.3