From 460fa678823a7cf3d2869a3e4beafb22e5a313fa Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov
Date: Sat, 28 Apr 2018 13:30:20 +0300 Subject: [PATCH] gnu: Add sound service. * gnu/services/sound.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add this. * doc/guix.texi (Sound Services): New chapter. --- doc/guix.texi | 33 ++++++++++++++++ gnu/local.mk | 1 + gnu/services/sound.scm | 86 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 100644 gnu/services/sound.scm diff --git a/doc/guix.texi b/doc/guix.texi index 75886e94b..46855d945 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -235,6 +235,7 @@ Services * X Window:: Graphical display. * Printing Services:: Local and remote printer support. * Desktop Services:: D-Bus and desktop services. +* Sound Services:: ALSA and Pulseaudio services. * Database Services:: SQL databases, key-value stores, etc. * Mail Services:: IMAP, POP3, SMTP, and all that. * Messaging Services:: Messaging services. @@ -9697,6 +9698,7 @@ declaration. * X Window:: Graphical display. * Printing Services:: Local and remote printer support. * Desktop Services:: D-Bus and desktop services. +* Sound Services:: ALSA and Pulseaudio services. * Database Services:: SQL databases, key-value stores, etc. * Mail Services:: IMAP, POP3, SMTP, and all that. * Messaging Services:: Messaging services. @@ -12804,6 +12806,37 @@ bluetooth keyboard or mouse. Users need to be in the @code{lp} group to access the D-Bus service. @end deffn address@hidden Sound Services address@hidden Sound Services + +The @code{(gnu services alsa)} module provides an address@hidden service to generate an ALSA address@hidden/etc/asound.conf} configuration file. + address@hidden {Scheme Variable} alsa-service-type +This is the type for the @uref{https://alsa-project.org/, ALSA}, address@hidden record as in this example: + address@hidden +(service alsa-service-type) address@hidden example + +See below for details about @code{alsa-configuration}. address@hidden deffn + address@hidden {Data Type} alsa-configuration +Data type representing the configuration for @code{alsa-service}. + address@hidden @asis address@hidden @code{pulseaudio?} (default: @var{#t}) +Whether to use Pulseaudio by configuring ALSA to use PulseAudio. + address@hidden @code{extra-options} (default: @var{#f}) +Extra options is a string which will be appended to asound.conf file. + address@hidden table address@hidden deftp + @node Database Services @subsubsection Database Services diff --git a/gnu/local.mk b/gnu/local.mk index cbf2c6f1b..b649ae008 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -480,6 +480,7 @@ GNU_SYSTEM_MODULES = \ %D%/services/networking.scm \ %D%/services/nfs.scm \ %D%/services/shepherd.scm \ + %D%/services/sound.scm \ %D%/services/herd.scm \ %D%/services/pm.scm \ %D%/services/rsync.scm \ diff --git a/gnu/services/sound.scm b/gnu/services/sound.scm new file mode 100644 index 000000000..5fe555e8b --- /dev/null +++ b/gnu/services/sound.scm @@ -0,0 +1,86 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2018 Oleg Pykhalov +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see