-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pulseaudio: Cannot connect to system-wide pulseaudio after activating new NixOS system configuration #114399
Comments
I marked this as stale due to inactivity. → More info |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Not stale. Also the |
indeed, |
@WesleyAC That looks like the correct fix and should be added to the Pulseaudio module. I have switched to Pipewire since I opened the issue, are you interested in creating the PR? |
Im so glad I found this thread. I was searching a long time for the reason why my services that use pulse try the nonSystemwide method when systemWide is active. I was at the point where I noticed it breaks on rebuilding and restarting the daemon fixes it. I never found the thing, the startscript of the daemon changes. This is exactly it! I just opened a pullrequest :) |
Describe the bug
When activating a new system configuration (without a reboot) update-users-groups.pl#L216 (triggered by
users.users.pulse.createHome
) will wipe permissions of/run/pulse
, making it impossible to connect to pulseaudio until the permissions are fixed or the service is restarted.Forcing
700
-permissions for home directories is a reasonable secure default (especially for normal users), but should definitely be configurable. I think the best solution would therefore be to create ausers.users.<name>.homePermissions
-Option and configure it to755
for thepulse
-user.To Reproduce
Steps to reproduce the behavior:
hardware.pulseaudio.systemWide = true
pulse-access
-group (users.groups.pulse-access = {};
), add a user to it (users.users.someone.extraGroups = ["pulse-access"]
)pulse-access
-Group should be able to connect to pulseaudio (test by e.g. startingpulsemixer
)nixos-rebuild test
Temporary fix
Notify maintainers
nixos/modules/config/pulseaudio.nix
has no meta section, please help?Metadata
My nixpkgs revision is actually
6b1057b452c55bb3b463f0d7055bc4ec3fd1f381
Maintainer information:
The text was updated successfully, but these errors were encountered: