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
xfce: delay package selection for pulseaudio volume to nixos modules #23382
Conversation
Thanks, I agree that this ought to be controlled by the nixos config option, not the nixpkgs one. If anyone thinks this is an error, feel free to revert. Edit: actually, i think we should keep both to maximize compatibility with existing configs. |
xfce4notifyd = callPackage ./applications/xfce4-notifyd.nix { }; | ||
xfce4taskmanager= callPackage ./applications/xfce4-taskmanager.nix { }; | ||
xfce4terminal = callPackage ./applications/terminal.nix { }; | ||
xfce4-screenshooter = callPackage ./applications/xfce4-screenshooter.nix { }; | ||
xfce4volumed = let |
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.
I think we should keep xfce4volumed
for people that aren't using NixOS and are still using xfce applications from nixpkgs. Ditto for keeping the default for pulseaudioSupport
for xfce4mixer
above. With the changes in the nixos xfce module you made, this should have no effect on nixos but leave everything as it was before on non-nixos.
Just add something to effect of |
PulseAudio is a per-user daemon, so it's a bad idea to only use |
Actually, having a Nixpkgs option that selects |
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.
I think this is a very good idea.
I've rebuilt system with this patch and both mixer and xfce4-volumed-pulse still work. Thank you a lot! It's much better than relying on (not properly documented) Nixpkgs option. |
Motivation for this change
In XFCE, for some reasons, the current setup that selects whether to use
xfce4volumed
andxfce4volume-pulse
and whether or not to enable pulseaudio support inxfce4mixer
doesn't work at all. No matter what I set forhardware.pulseaudio.enable
, no pulseaudio support is enabled. Selecting them in./pkgs
also makes it hard to install pulseaudio-enabled package hard when system-wise pulseaudio is not enabled (or on non-NixOS). Thus I suggest delaying the selection logic to the corresponding NixOS modules.Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)