Skip to content

Commit

Permalink
pulseaudio: Use group audio instead of pulse-access
Browse files Browse the repository at this point in the history
  • Loading branch information
rickynils committed Sep 3, 2014
1 parent ef5b304 commit 66ee6e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
7 changes: 0 additions & 7 deletions nixos/modules/config/pulseaudio.nix
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,6 @@ in {

users.extraGroups.pulse.gid = gid;

users.extraGroups.pulse-access = {
gid = ids.gids.pulse-access;
members = with builtins; config.users.extraGroups.audio.members ++ (
attrNames(filterAttrs (n: u: elem "audio" u.extraGroups) config.users.extraUsers)
);
};

systemd.services.pulseaudio = {
description = "PulseAudio System-Wide Server";
wantedBy = [ "sound.target" ];
Expand Down
1 change: 0 additions & 1 deletion nixos/modules/misc/ids.nix
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@
riemann = 137;
riemanndash = 138;
uhub = 142;
pulse-access = 143;

# When adding a gid, make sure it doesn't match an existing uid. And don't use gids above 399!

Expand Down
13 changes: 9 additions & 4 deletions pkgs/servers/pulseaudio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,15 @@ stdenv.mkDerivation rec {
-e "s|chmod r+s |true |"
'';

configureFlags =
[ "--disable-solaris" "--disable-jack" "--disable-oss-output"
"--disable-oss-wrapper" "--localstatedir=/var" "--sysconfdir=/etc" ]
++ stdenv.lib.optional jackaudioSupport "--enable-jack"
configureFlags = [
"--disable-solaris"
"--disable-jack"
"--disable-oss-output"
"--disable-oss-wrapper"
"--localstatedir=/var"
"--sysconfdir=/etc"
"--with-access-group=audio"
] ++ stdenv.lib.optional jackaudioSupport "--enable-jack"
++ stdenv.lib.optional stdenv.isDarwin "--with-mac-sysroot=/";

enableParallelBuilding = true;
Expand Down

0 comments on commit 66ee6e0

Please sign in to comment.