* 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:
parent
1ac56c233e
commit
6f8e30313f
|
@ -77,6 +77,9 @@ let
|
||||||
{ name = "tape";
|
{ name = "tape";
|
||||||
gid = ids.gids.tape;
|
gid = ids.gids.tape;
|
||||||
}
|
}
|
||||||
|
{ name = "audio";
|
||||||
|
gid = ids.gids.audio;
|
||||||
|
}
|
||||||
{ name = "video";
|
{ name = "video";
|
||||||
gid = ids.gids.video;
|
gid = ids.gids.video;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,14 +43,7 @@ in
|
||||||
|
|
||||||
config = mkIf config.sound.enable {
|
config = mkIf config.sound.enable {
|
||||||
|
|
||||||
environment.systemPackages = [alsaUtils];
|
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;
|
|
||||||
};
|
|
||||||
|
|
||||||
jobs.alsa =
|
jobs.alsa =
|
||||||
{ startOn = "stopped udevtrigger";
|
{ startOn = "stopped udevtrigger";
|
||||||
|
|
Loading…
Reference in New Issue