summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-20 06:43:24 -0300
committerEuAndreh <eu@euandre.org>2024-08-20 06:43:35 -0300
commitc637b671f034e01623798e48a415d971430f4876 (patch)
tree04da41ada89e7e2b845e60069a178e4bc54c235a /src
parentsystem.scm: Reorder file-systems <-> swap-devices (diff)
downloadasami-c637b671f034e01623798e48a415d971430f4876.tar.gz
asami-c637b671f034e01623798e48a415d971430f4876.tar.xz
system.scm: swapon /swapfile
Diffstat (limited to 'src')
-rw-r--r--src/guix/system.scm10
1 files changed, 10 insertions, 0 deletions
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
@@ -142,5 +142,15 @@
(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"))))))