mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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>
This commit is contained in:
parent
4af3262d98
commit
9685c0637d
2 changed files with 116 additions and 38 deletions
|
@ -1,6 +1,6 @@
|
|||
;; This is an operating system configuration template
|
||||
;; for a "desktop" setup with GNOME and Xfce where the
|
||||
;; root partition is encrypted with LUKS.
|
||||
;; root partition is encrypted with LUKS, and a swap file.
|
||||
|
||||
(use-modules (gnu) (gnu system nss))
|
||||
(use-service-modules desktop xorg)
|
||||
|
@ -42,6 +42,11 @@
|
|||
(type "vfat")))
|
||||
%base-file-systems))
|
||||
|
||||
;; Specify a swap file for the system, which resides on the
|
||||
;; root file system.
|
||||
(swap-devices (list (swap-space
|
||||
(target "/swapfile"))))
|
||||
|
||||
;; Create user `bob' with `alice' as its initial password.
|
||||
(users (cons (user-account
|
||||
(name "bob")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue