4 ms·
I'm not saying you're lying (I'm sure you're not), but... colour me skeptical. This sounds too good to be true. Can you explain how audio and bluetooth works i
by jstanley 4y ago
I'm not saying you're lying (I'm sure you're not), but... colour me skeptical. This sounds too good to be true.
Can you explain how audio and bluetooth works independently of the desktop session? Does it need custom support compiled in to every window manager?
If it's so easy to do it independently of the desktop session, why does Ubuntu etc. make it dependent on the desktop session? I had assumed that it was something like the desktop session needing to set up environment variables so that all your applications knew how to talk to PulseAudio.
- JamesSwift 4y agoFrom the documentation on the PulseAudio module (the nix term for those 'enable = true' things) [1]: > Explicit PulseAudio support in applications > Normally, the system-wide ALSA configuration (/etc/asound.conf) redirects the audio of applications which use the ALSA API through PulseAudio. For this reason, most applications do not need to be PulseAudio-aware. Some NixOS packages can be built with explicit PulseAudio support which is disabled by default. This support can be enabled in all applicable packages by setting: > nixpkgs.config.pulseaudio = true; [1] - https://nixos.wiki/wiki/PulseAudio https://nixos.wiki/wiki/PulseAudio
- ParetoOptimal 4y agoI can't answer your questions about why Ubuntu ties sound to desktop session, but i can say audio and bluetooth in NixOS has been that trivially easy and worked on 8 different machines of mine and friends without issue.
- chriswarbo 4y ago> If it's so easy Note that the parent is only changing a config option; there may be all sorts of logic behind the scenes which branch on that value, e.g. to splice different text into /etc files, to add compile flags to package builds, etc. ;)
- forgotpwd16 4y agoFrom starting up the session on the login manager to the final state of it there're various intermediate steps. Full desktop environments (GNOME and KDE) will load everything needed for you whereas when running a window manager alone you've to do it yourself. Those Nix options set up things (essentially abstracting what you'll have done manually) in some previous step (before starting the window manager). >why does Ubuntu etc. make it dependent on the desktop session Because what if you didn't want them? Non-Nix systems don't have this centralized configuration model therefore they cannot provide this flexibility. Therefore they just let each session to load what it needs.