summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2025-05-06 16:16:09 +0900
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2025-05-26 13:43:03 +0900
commit4c017ccfe56a8887bf26faaea62d60501d7cc4f6 (patch)
tree5c8a5efc2bd183db771f2ad6cafed857824f1063 /doc
parent42245040f683bf11688f3731037d0e933fa562fa (diff)
services: Add etc-bashrc-d-service-type.
* gnu/services.scm (files->bashrc-d-directory) New procedure. (etc-bashrc-d-service-type): New service type. * doc/guix.texi (Service Reference): Document it. * gnu/tests/base.scm (test-basic-os): Test it. Change-Id: Ibbb0f684de7aee296adedbce5b1192786d661af2
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 628cc007ce7..38a75b73ceb 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -47679,6 +47679,24 @@ usage may look like:
@end example
@end defvar
+@defvar etc-bashrc-d-service-type
+The type of the @file{/etc/bashrc.d} service. This service is used to
+create files under @file{/etc/bashrc.d}. It takes as value a list of
+file-like objects, as can be produced with @code{local-file},
+@code{plain-file}, etc. Note that provided files whose file names do
+not end with @file{.sh} are @emph{not} added to @file{/etc/profile.d/}
+and are silently dropped. Package objects can also be provided directly
+to have their @file{etc/bashrc.d/*.sh} prefixed files added. An example
+usage may look like:
+
+@example
+(use-package-modules gnome) ;for the `vte' package
+
+(simple-service 'vte-integration etc-bashrc-d-service-type
+ (list (file-append vte "/etc/profile.d/vte.sh")))
+@end example
+@end defvar
+
@defvar privileged-program-service-type
Type for the ``privileged-program service''. This service collects lists of
executable file names, passed as gexps, and adds them to the set of