From f3f16dc16911fead6c3a2eb5514059c0117d4615 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 10 Jun 2007 20:17:51 +0000 Subject: [PATCH] * ALSA requires a group named "audio". svn path=/nixos/trunk/; revision=8863 --- system/ids.nix | 1 + upstart-jobs/alsa.nix | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/system/ids.nix b/system/ids.nix index 90fcda5199d..cb48ffd10f8 100644 --- a/system/ids.nix +++ b/system/ids.nix @@ -14,6 +14,7 @@ gids = { root = 0; haldaemon = 5; + audio = 17; users = 100; nixbld = 30000; nogroup = 65534; diff --git a/upstart-jobs/alsa.nix b/upstart-jobs/alsa.nix index 1afca3c4554..319918117da 100644 --- a/upstart-jobs/alsa.nix +++ b/upstart-jobs/alsa.nix @@ -10,7 +10,15 @@ in name = "alsa"; extraPath = [alsaUtils]; - + + # Alsalib seems to require the existence of this group, even if it's + # not used (e.g., doesn't own any devices). + groups = [ + { name = "audio"; + gid = (import ../system/ids.nix).gids.audio; + } + ]; + job = " start on hardware-scan stop on shutdown