aboutsummaryrefslogtreecommitdiff
path: root/src/guix/system.scm
diff options
context:
space:
mode:
Diffstat (limited to 'src/guix/system.scm')
-rw-r--r--src/guix/system.scm12
1 files changed, 12 insertions, 0 deletions
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
@@ -173,5 +173,17 @@
(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"))))))