mbox series

[bug#53826,0/2] Improve Swap Space examples

Message ID cover.1644181792.git.dev@jpoiret.xyz
Headers show
Series Improve Swap Space examples | expand

Message

Josselin Poiret Feb. 6, 2022, 9:18 p.m. UTC
Hello,

These two patches should help making swap space dependencies more
manageable for people who aren't yet proficient enough in Guile.

The first patch adds a simple predicate which can be used in
conjunction with filter to select file systems with specific mount
points, and the second refactors the examples to be more readily copy
and pasted into the configuration file, also using the helper
predicate.

Best,

Josselin Poiret (2):
  system: Add helper file-system-mount-point-predicate.
  doc: Clarify the Swap Space examples, and include an helper example.

 doc/guix.texi               | 33 +++++++++++++++++++++++++--------
 gnu/system/file-systems.scm |  7 +++++++
 2 files changed, 32 insertions(+), 8 deletions(-)

Comments

Ludovic Courtès Feb. 15, 2022, 9:15 a.m. UTC | #1
Hi Josselin,

Josselin Poiret <dev@jpoiret.xyz> skribis:

> These two patches should help making swap space dependencies more
> manageable for people who aren't yet proficient enough in Guile.
>
> The first patch adds a simple predicate which can be used in
> conjunction with filter to select file systems with specific mount
> points, and the second refactors the examples to be more readily copy
> and pasted into the configuration file, also using the helper
> predicate.

Nice.

>   system: Add helper file-system-mount-point-predicate.
>   doc: Clarify the Swap Space examples, and include an helper example.

Applied, thanks!

Ludo’.