aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/linux.scm
Commit message (Collapse)AuthorAge
* services: kernel-module-lodaer: Add udev requirement.Hilton Chain2024-02-05
| | | | | | | | | | Otherwise, modules will be loaded before udev starts, and load events won't be handled. * gnu/services/linux.scm (kernel-module-loader-shepherd-service)[requirement]: Add 'udev. Change-Id: Ib65028978f96012604b54b27a56501d4388b0f34
* services: fstrim-service-type: Serialize with SRFI-171 transducers.Bruno Victal2023-10-07
| | | | | | | * gnu/services/linux.scm (serialize-fstrim-configuration): Refactor to use base-transducer. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
* gnu: earlyoom: Improve description.Ludovic Courtès2023-08-21
| | | | * gnu/services/linux.scm (earlyoom-service-type)[description]: Tweak.
* services: earlyoom: Move 'user-processes' to 'requirements'.Ludovic Courtès2023-08-21
| | | | | | | | | | Fixes a regression introduced in 9c34b793c10cdb50235b876dea5be700ab5600dc. * gnu/services/linux.scm (earlyoom-shepherd-service): Move 'user-processes' to 'requirements'. Reported-by: Attila Lendvai <attila@lendvai.name>
* services: Add missing 'user-processes' requirements.Ludovic Courtès2023-08-21
| | | | | | * gnu/services/guix.scm (guix-build-coordinator-agent-shepherd-services): Add 'user-processes' requirement. * gnu/services/linux.scm (earlyoom-shepherd-service): Likewise.
* services: Add cachefilesd service.Felix Lechner2023-08-15
| | | | | | | | | | | | | | | | | | | | Thanks to Bruno Victal "mirai" for cooperating on this patch and for generously sharing a wealth of insights about Guix services. Thanks to Jean-Baptiste Note for an early version of this service! * doc/guix.texi (Linux Services)[Cachefilesd Service]: New heading. * gnu/services/linux.scm (serialize-string, non-negative-integer?) (serialize-non-negative-integer, string, non-negative-integer) (make-option-serializer, make-percentage-threshold-serializer): New procedures. (cachefilesd-configuration): New record type. (cachefilesd-service-type): New variable. * gnu/tests/cachefilesd.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. Co-authored-by: Bruno Victal <mirai@makinata.eu> Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* services: earlyoom: Rotate log files.Efraim Flashner2023-05-04
| | | | | * gnu/services/linux.scm (%earlyoom-log-rotation): New variable. (earlyoom-service-type): Add service-extension for log rotation.
* services: replace bare serializers with (serializer ...)Bruno Victal2023-04-02
| | | | | | | | | | | | | | | | | | | * gnu/home/services/shells.scm (home-zsh-configuration)[environment-variables]: Use (serializer ...). (home-bash-configuration)[aliases, environment-variables]: Likewise. (home-fish-configuration)[abbreviations, aliases] [environment-variables]: Likewise. * gnu/services/audio.scm (mpd-configuration)[music-dir, playlist-dir] [endpoints, address, inputs, archive-plugins, input-cache-size] [decoders, filters, playlist-plugins]: Likewise. * gnu/services/linux.scm (fstrim-configuration)[extra-arguments]: Likewise. * gnu/services/security.scm (fail2ban-jail-configuration)[backend] [log-encoding, extra-content]: Likewise. * tests/services/configuration.scm: Update tests. ("serialize-configuration [deprecated]"): New test. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
* services: fstrim: Fix schedule ungexp.Bruno Victal2023-03-28
| | | | | | | | | | | | Previously, only the first level of the list would be quoted, resulting in a schedule of the sort: '(next-second (range 0 60 30)) being incorrectly ungexp'd into: (list next-second (0 30)) * gnu/services/linux.scm (fstrim-mcron-job): Fix schedule ungexp. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
* services: Add fstrim-service-type.Bruno Victal2023-03-22
| | | | | | | | | | | | * gnu/services/linux.scm (fstrim-service-type): New variable. (fstrim-mcron-job, serialize-fstrim-configuration) (fstrim-serialize-list-of-strings, fstrim-serialize-boolean): New procedure. (mcron-time?): New predicate. (fstrim-configuration): New record. * doc/guix.texi (Linux Services): Document new fstrim-service-type. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
* system: Align zram priority with swap-space spec to clarify.Josselin Poiret2022-06-11
| | | | | | | | | | | | | | | | Fixes <https://issues.guix.gnu.org/54783>. * gnu/services/linux.scm (zram-device-configuration) [priority]: Adapt to use #f or an integer from 0 to 32767. Add sanitizer to warn for the change and delay the field. (zram-device-configuration->udev-string): Adapt as above. * doc/guix.texi (Zram Device Service): Remove double copyright line. Change priority description to refer to the Swap Space one, and suggest not leaving the default #f on to properly use zram. Reported-by: Stefan Baums <baums@stefanbaums.com> Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
* services: Add a service for rasdaemon.B. Wilson2021-04-24
| | | | | | | | * gnu/services/linux.scm (rasdaemon-configuration, rasdaemon-configuration?, rasdaemon-configuration-record?, rasdaemon-service-type): New variables. * doc/guix.texi (Linux Services): Document it. Signed-off-by: Leo Famulari <leo@famulari.name>
* gnu: Remove 'file-systems requirement from kernel-module-loader.raid5atemyhomework2021-02-08
| | | | | | | * gnu/services/linux.scm (kernel-module-loader-shepherd-service): Remove 'file-systems requirement. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
* services: kernel-module-loader: Return a single 'shepherd-service'.Brice Waegeneire2021-01-06
| | | | | | | | * gnu/services/linux.scm (kernel-module-loader-shepherd-service): Return a 'shepherd-service' instead of a list of it. (kernel-module-loader-service-type): Adjust it. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
* services: Fix zram-device-service.Tobias Geerinckx-Rice2020-09-13
| | | | * gnu/services/linux.scm (<zram-device-configuration>): Fix typo.
* services: Add zram-device-service.Efraim Flashner2020-08-02
| | | | | | | * gnu/services/linux.scm (<zram-device-configuration>): New record. (zram-device-service-type): New variable. * doc/guix.texi (Linux Services): Document it. * tests/services/linux.scm (zram-swap-device-test): New tests.
* services: kernel-module-loader: Clean up.Florian Pelz2020-04-12
| | | | | | | | Suggested by Efraim Flashner <efraim@flashner.co.il>. See <https://lists.gnu.org/archive/html/bug-guix/2020-04/msg00237.html>. * gnu/services/linux.scm (kernel-module-loader-shepherd-service): Remove unneeded 'respawn?' field.
* gnu: Add kernel-module-loader-service.Brice Waegeneire2020-04-05
| | | | | | | | | | | | | | | * doc/guix.texi (Linux Services): Add a new subsection and document the new service and its configuration. * gnu/services/linux.scm (kernel-module-loader-service-type): New type. (kernel-module-loader-shepherd-service): New procedure. * gnu/tests/linux-modules.scm (module-loader-program): Procedure removed. (modules-loaded?-program): New procedure. (run-loadable-kernel-modules-test): 'module-loader-program' procedure replaced by the new one. [os]: Use 'kernel-module-loader-service'. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
* gnu: Add earlyoom-service-type.Maxim Cournoyer2020-01-31
* gnu/services/linux.scm: New file. * tests/services/linux.scm: Add test. * Makefile.am (SCM_TESTS): Register test. * doc/guix.texi (Linux Services): Add a new section and document the new service and its configuration.