* The "audio" group should always exist, even if the ALSA module is

disabled, because udev rules refer to it.

svn path=/nixos/trunk/; revision=30229
This commit is contained in:
Eelco Dolstra 2011-11-04 17:40:00 +00:00
parent 1ac56c233e
commit 6f8e30313f
2 changed files with 4 additions and 8 deletions

View File

@ -77,6 +77,9 @@ let
{ name = "tape";
gid = ids.gids.tape;
}
{ name = "audio";
gid = ids.gids.audio;
}
{ name = "video";
gid = ids.gids.video;
}

View File

@ -43,14 +43,7 @@ in
config = mkIf config.sound.enable {
environment.systemPackages = [alsaUtils];
users.extraGroups = singleton
{ # Alsalib seems to require the existence of this group, even
# if it's not used (e.g., doesn't own any devices).
name = "audio";
gid = config.ids.gids.audio;
};
environment.systemPackages = [ alsaUtils ];
jobs.alsa =
{ startOn = "stopped udevtrigger";