Skip to content
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

installer: Enable pulseaudio in all graphical iso's #56167

Merged
merged 2 commits into from Feb 22, 2019

Conversation

etu
Copy link
Contributor

@etu etu commented Feb 21, 2019

Motivation for this change

I think this would help for a good first impression for people trying out the ISO. I've never reflected over this myself. But someone I chatted with (that has never heard of NixOS before) tried it pointed this out to me.

And I agree, it's weird to ship a graphical environment without audio enabled.

Things done

I've built the ISO like this:

nix-build nixos/release.nix -A iso_graphical

And then I've wrote the image to an USB-stick and tried it on my thinkpad. And it works there at least.


@etu etu requested a review from infinisil as a code owner February 21, 2019 22:09
@matthewbauer
Copy link
Member

Could you also add it to virtualbox-image: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/virtualbox-image.nix

I think it is useful there as well.

@matthewbauer
Copy link
Member

Or actually you might be able to put it in https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/profiles/graphical.nix

Copy link
Contributor

@worldofpeace worldofpeace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I also found this to be strange.

@oxij
Copy link
Member

oxij commented Feb 22, 2019 via email

@etu
Copy link
Contributor Author

etu commented Feb 22, 2019

@oxij Disabling sound.enable seems to have been a very conscious decision made in #35355 which I'm not about to question.

But you seem to question that choice, but that's up to you. But for now I'd rather see working audio in the next stable iso's, and branch-off is on Monday. So if you want to change that as well, I'd suggest taking it up for the next stable.

@etu etu merged commit 5f00002 into NixOS:master Feb 22, 2019
@etu etu deleted the iso-with-audio branch February 22, 2019 20:24
@oxij
Copy link
Member

oxij commented Feb 23, 2019 via email

@etu
Copy link
Contributor Author

etu commented Feb 23, 2019

Here I'm questioning the leap from "let's have sound in graphical installer ISOs" (I agree, let's) to "let's run PulseAudio daemon in installer ISOs".

Well, since the graphical installer is not just an installer, it's also a showcase for NixOS for many that want to try it out.

And pulseaudio is pretty much default on many distros, not all, but many. And most users do expect pulseaudio to be there. So why not show that off in the showcase? I mean, it's not likely to break the graphical environment and it's something that people expect to be there. Which makes it a good idea for the showcase that happens to be the first impression that many new users will meet.

And iirc, there's things that depend on pulseaudio that I guess don't work with alsa nowadays, so not having pulseaudio would break that showcase a bit.

For example: https://bugzilla.mozilla.org/show_bug.cgi?id=1345661

Firefox doesn't seem to work that well without pulseaudio. One of the first applications that people find on the ISO is firefox since it contains the manual once the graphical environment is started. It's not uncommon for people to go to youtube and play music from there while doing other things. And with an ALSA only system I'd suspect that that wouldn't work. Which would break the impression of a nice graphical environment a fair bit.

@oxij
Copy link
Member

oxij commented Feb 23, 2019 via email

@matthewbauer
Copy link
Member

Surprisingly, no large increase in output sides from this:

https://hydra.nixos.org/job/nixos/trunk-combined/nixos.iso_graphical.x86_64-linux#tabs-charts

pulseaudio must have been getting pulled in some other way.

@adisbladis
Copy link
Member

hardware.pulseaudio.systemWide = true; should not be set in the graphical profile. There are only a handful of use cases where system-wide pulseaudio is a good idea and it's not a good default.

We just had a user on IRC thinking that they wanted to enable system-wide pulseaudio based on the contents of this file.

etu added a commit to etu/nixpkgs that referenced this pull request Nov 11, 2019
It's not needed since NixOS#66338 and should have been done earlier.

This is based on a follow-up on NixOS#56167.
etu added a commit to etu/nixpkgs that referenced this pull request Nov 13, 2019
It's not needed since NixOS#66338 and should have been done earlier.

This is based on a follow-up on NixOS#56167.

(cherry picked from commit 4403cd1)
dtzWill pushed a commit to dtzWill/nixpkgs that referenced this pull request Feb 19, 2020
It's not needed since NixOS#66338 and should have been done earlier.

This is based on a follow-up on NixOS#56167.

(cherry picked from commit 4403cd1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants