diff options
author | W. Kosior <koszko@koszko.org> | 2024-06-14 10:49:23 +0200 |
---|---|---|
committer | W. Kosior <koszko@koszko.org> | 2024-06-14 10:49:23 +0200 |
commit | 33992f48b29e3a540a68e2dc93766ff4a5d1791c (patch) | |
tree | b43f5c0ce2eb7d87c1fc656f3d8e197e572f439f | |
parent | 84bf5f44524d2bab59991b376e964e96075f0ba0 (diff) | |
download | koszko-org-guix-server-33992f48b29e3a540a68e2dc93766ff4a5d1791c.tar.gz koszko-org-guix-server-33992f48b29e3a540a68e2dc93766ff4a5d1791c.zip |
Add swap space.
-rw-r--r-- | salamina.scm | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/salamina.scm b/salamina.scm index 1c77d52..c386947 100644 --- a/salamina.scm +++ b/salamina.scm @@ -748,6 +748,18 @@ (bootloader grub-bootloader) (targets '("/dev/vda")))) + (file-systems (cons* (fs:file-system + (device (fs:file-system-label "salamina-root")) + (mount-point "/") + (type "ext4")) + fs:%base-file-systems)) + + (swap-devices + (list (fs:swap-space + (target "/swapfile") + (dependencies (filter (fs:file-system-mount-point-predicate "/swap") + file-systems))))) + (users (cons* (gss:user-account (name "vmail") (group "vmail") @@ -790,12 +802,6 @@ (user "httpd") (groups '("git"))))) - (file-systems (cons* (fs:file-system - (device (fs:file-system-label "salamina-root")) - (mount-point "/") - (type "ext4")) - fs:%base-file-systems)) - (packages (append (specifications->packages '("file" "bind:utils" |