summaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorJosselin Poiret <dev@jpoiret.xyz>2021-11-15 20:26:31 +0000
committerLudovic Courtès <ludo@gnu.org>2021-11-23 10:24:28 +0100
commit9685c0637decec77880cec65547a2e57c300761a (patch)
tree6ffa1dce1a123549de4ca8dbfd0dc05010dc97ef /gnu/system
parent4af3262d9857405aff0a4a855403247f0f485e15 (diff)
doc: Add new Swap Space section.
* doc/guix.texi (operating-system Reference): Update swap-devices. * doc/guix.texi (Swap Space): Add it. * gnu/system/examples/desktop.tmpl: Add swap-devices example. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/examples/desktop.tmpl7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/system/examples/desktop.tmpl b/gnu/system/examples/desktop.tmpl
index c928008c925..6df53844b1a 100644
--- a/gnu/system/examples/desktop.tmpl
+++ b/gnu/system/examples/desktop.tmpl
@@ -1,6 +1,6 @@
1;; This is an operating system configuration template 1;; This is an operating system configuration template
2;; for a "desktop" setup with GNOME and Xfce where the 2;; for a "desktop" setup with GNOME and Xfce where the
3;; root partition is encrypted with LUKS. 3;; root partition is encrypted with LUKS, and a swap file.
4 4
5(use-modules (gnu) (gnu system nss)) 5(use-modules (gnu) (gnu system nss))
6(use-service-modules desktop xorg) 6(use-service-modules desktop xorg)
@@ -42,6 +42,11 @@
42 (type "vfat"))) 42 (type "vfat")))
43 %base-file-systems)) 43 %base-file-systems))
44 44
45 ;; Specify a swap file for the system, which resides on the
46 ;; root file system.
47 (swap-devices (list (swap-space
48 (target "/swapfile"))))
49
45 ;; Create user `bob' with `alice' as its initial password. 50 ;; Create user `bob' with `alice' as its initial password.
46 (users (cons (user-account 51 (users (cons (user-account
47 (name "bob") 52 (name "bob")