aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-20 07:48:41 -0300
committerEuAndreh <eu@euandre.org>2024-08-20 07:48:41 -0300
commitb1aaa46bce54e44c98ff6dd9ec376f53ea236abc (patch)
treebb03bb248ca7da123dc8f3539b196ba91a11360b
parentetc/guix/home.scm: Add "entr" and "inotify-tools" packages (diff)
downloaddotfiles-b1aaa46bce54e44c98ff6dd9ec376f53ea236abc.tar.gz
dotfiles-b1aaa46bce54e44c98ff6dd9ec376f53ea236abc.tar.xz
system.scm: Better instructions on creating /swapfile
-rw-r--r--etc/guix/system.scm12
1 files changed, 7 insertions, 5 deletions
diff --git a/etc/guix/system.scm b/etc/guix/system.scm
index c7b6d30..f209402 100644
--- a/etc/guix/system.scm
+++ b/etc/guix/system.scm
@@ -293,11 +293,13 @@ Seiko Epson Color Ink Jet Printers.")
(swap-devices
(list
(swap-space
- ;; sudo rm /swapfile
- ;; sudo fallocate -l 8G /swapfile
- ;; sudo chmod 600 /swapfile
- ;; sudo mkswap /swapfile
- ;; sudo swapon /swapfile
+ ;; # 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 "/")