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
nixos/gdm: Fix pulseaudio tmpfiles structure #80274
Conversation
Fix the following startup failure of the sound service in the gdm session that was introduced by NixOS#75893: ``` Feb 16 11:44:15 qp pulseaudio[1432]: W: [pulseaudio] core-util.c: Failed to open configuration file '/run/gdm/.config/pulse//daemon.conf': Not a directory Feb 16 11:44:15 qp pulseaudio[1432]: W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Not a directory Feb 16 11:44:15 qp systemd[1380]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE Feb 16 11:44:15 qp systemd[1380]: pulseaudio.service: Failed with result 'exit-code'. Feb 16 11:44:15 qp systemd[1380]: Failed to start Sound Service. ```
@@ -168,7 +168,8 @@ in | |||
systemd.tmpfiles.rules = [ | |||
"d /run/gdm/.config 0711 gdm gdm -" | |||
] ++ optionals config.hardware.pulseaudio.enable [ | |||
"L+ /run/gdm/.config/pulse - - - - ${pulseConfig}" | |||
"d /run/gdm/.config/pulse 0711 gdm gdm" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is different than "d /run/gdm/.config 0711 gdm gdm -"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Omitting the age filed has the same effect as -
according to the man page.
Or are you referring to something else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, https://github.com/NixOS/nixpkgs/pull/80274/files#r379931503 for consistency
... by removing an unneeded explicit `-` for the directory age field where this parameter is already the default. Co-Authored-By: worldofpeace <worldofpeace@protonmail.ch>
Made a clean vm and looked for the file
|
* nixos/gdm: Fix pulseaudio tmpfiles structure Fix the following startup failure of the sound service in the gdm session that was introduced by #75893: ``` Feb 16 11:44:15 qp pulseaudio[1432]: W: [pulseaudio] core-util.c: Failed to open configuration file '/run/gdm/.config/pulse//daemon.conf': Not a directory Feb 16 11:44:15 qp pulseaudio[1432]: W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Not a directory Feb 16 11:44:15 qp systemd[1380]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE Feb 16 11:44:15 qp systemd[1380]: pulseaudio.service: Failed with result 'exit-code'. Feb 16 11:44:15 qp systemd[1380]: Failed to start Sound Service. ``` Co-authored-by: worldofpeace <worldofpeace@protonmail.ch> (cherry picked from commit 44a4a38)
backported to 20.03 in 7a15ea9 |
Thanks! |
I'm getting the following on today's switch to unstable, probably related?
|
Did you get that message from the gdm session after boot or during |
During |
This is probably because of the
fails. The workaround is to use |
Or, if you can't reboot: Just delete the symlink manually. |
Yeah, /run isn't going to stick. This would only be an issue for unstable users. 19.09 -> 20.03 should be fine. |
Fix the following startup failure of the sound service in the gdm
session that was introduced by #75893:
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)