diff options
| author | Herman Rimm <herman@rimm.ee> | 2026-07-16 17:17:09 +0200 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-07-28 18:32:32 +0200 |
| commit | 90a0b71c0c3a9cbbeb850dac991b0e48c38337f0 (patch) | |
| tree | a8474bff666443d493f84733d16fe4c86e8023c7 /doc | |
| parent | 19b655562009fa9e5cf259836d8a3789f6d67073 (diff) | |
services: elogind: Fix runtime-directory-size field.
Both runtime-directory-size and runtime-directory-size-percent field currently
cause an error if set. A comment above the latter already calls for its
deprecation. This patch combines both into a single field and fixes
their serialization.
* gnu/services/desktop.scm (percent?, percent, elogind-serialize-percent):
Replace with…
(non-negative-integer-and-suffix?, non-negative-integer-and-suffix)
(elogind-serialize-non-negative-integer-and-suffix): … these.
(elogind-configuration)[runtime-directory-size-percent]: Remove field,
integrating logic into …
[runtime-directory-size]: … here. Serialize it.
* doc/guix.texi (Desktop Services): Adjust accordingly.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Merges: guix/guix#9987
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guix.texi | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index b34f0d1d3da..d2e8f2335a5 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -27671,16 +27671,12 @@ Action to take when the system is idle. | |||
| 27671 | The delay after which the action configured in @code{idle-action} is | 27671 | The delay after which the action configured in @code{idle-action} is |
| 27672 | taken after the system is idle. | 27672 | taken after the system is idle. |
| 27673 | 27673 | ||
| 27674 | @item @code{runtime-directory-size-percent} (type: maybe-percent) | 27674 | @item @code{runtime-directory-size} (default: @code{'(10 . %)}) (type: maybe-non-negative-integer-and-suffix) |
| 27675 | Set the size limit, in percent, on the @env{XDG_RUNTIME_DIR} runtime | 27675 | Set the size limit on the @env{XDG_RUNTIME_DIR} runtime directory for |
| 27676 | directory for each user who logs in. This specifies the per-user size | 27676 | each user who logs in. The size in bytes can be given as an integer and |
| 27677 | limit relative to the amount of physical @acronym{RAM,read access | 27677 | paired with symbols: K, M, G, or T. When paired with @code{'%}, the |
| 27678 | memory}. This value takes precedence over that specified via | 27678 | integer represents the limit as a percentage share of the total amount |
| 27679 | @code{runtime-directory-size}. | 27679 | of physical @acronym{RAM, read access memory}. |
| 27680 | |||
| 27681 | @item @code{runtime-directory-size} (type: maybe-non-negative-integer) | ||
| 27682 | Set the size limit, in bytes, on the @env{XDG_RUNTIME_DIR} runtime | ||
| 27683 | directory for each user who logs in. | ||
| 27684 | 27680 | ||
| 27685 | @item @code{remove-ipc?} (default: @code{#t}) (type: maybe-boolean) | 27681 | @item @code{remove-ipc?} (default: @code{#t}) (type: maybe-boolean) |
| 27686 | Whether @acronym{IPC,inter-process communication} objects belonging to | 27682 | Whether @acronym{IPC,inter-process communication} objects belonging to |
