about summary refs log tree commit diff
path: root/nixos/tests/pulseaudio.nix
diff options
context:
space:
mode:
authorYarny0 <41838844+Yarny0@users.noreply.github.com>2022-08-18 11:03:58 +0200
committerYarny0 <41838844+Yarny0@users.noreply.github.com>2022-08-18 16:49:18 +0200
commit7ba079505aa414bb01c53f9d1ed6f97112f791c4 (patch)
tree443c5584bbc60cd05ef58c12f748ae54ea463eff /nixos/tests/pulseaudio.nix
parent0fd253867885cebd9a8384110c0f0f50e9a5b327 (diff)
nixos/pulseaudio: add pulse-access group
According to pulseaudio(1), a system wide pulseaudio instance
can only be accessed by members of the `pulse-access` group.
This name seems to be hardcoded in
pulseaudio -- I didn't find any switch to change it.
We need to define the group so users can connect to the deamon.

This commit also fixes the systemwide pulseaudio vm test:
Previously, the test user `alice`
was just a member of the `audio` group.
This blocked access to the daemon and failed the test.
The commit changes the group assignment and fixes the vm test.
Diffstat (limited to 'nixos/tests/pulseaudio.nix')
-rw-r--r--nixos/tests/pulseaudio.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/pulseaudio.nix b/nixos/tests/pulseaudio.nix
index c553527a482cf..16809228b9dd2 100644
--- a/nixos/tests/pulseaudio.nix
+++ b/nixos/tests/pulseaudio.nix
@@ -40,7 +40,7 @@ let
             environment.systemPackages = [ testers.testPlay pkgs.pavucontrol ]
               ++ lib.optional pkgs.stdenv.isx86_64 testers.testPlay32;
           } // lib.optionalAttrs systemWide {
-            users.users.alice.extraGroups = [ "audio" ];
+            users.users.alice.extraGroups = [ "pulse-access" ];
             systemd.services.pulseaudio.wantedBy = [ "multi-user.target" ];
           };