-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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 service: set DISPLAY #15840
Conversation
By analyzing the blame information on this pull request, we identified @rickynils, @peterhoeg and @edolstra to be potential reviewers |
@@ -161,6 +161,7 @@ in { | |||
ExecStart = "${getBin cfg.package}/bin/pulseaudio --daemonize=no"; | |||
Restart = "on-failure"; | |||
}; | |||
environment = { DISPLAY = ":0"; }; |
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.
It can be false sometimes.
@jagajaga I switched it to use the same configuration option as the unclutter module. |
@@ -118,6 +118,13 @@ in { | |||
''; | |||
}; | |||
}; | |||
|
|||
displayName = mkOption { |
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.
There is no such option in NixOS? Like services.xserver.foobar
?
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.
not that I'm aware of. Also, in practice is it even possible to run multiple X servers with different DISPLAY values on NixOS? I've done it before on other distros, but only by manually running startx
, and that doesn't work on NixOS.
So, I would also love a generic solution to this, but I think it's a problem for another day and outside of the scope of this diff.
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.
actually, I was completely wrong. I switched to directly using config.services.xserver.display, and also applied that fix to the unclutter service
256db13
to
42c65cc
Compare
Hm, I see that this touches several unrelated modules. Perhaps it'd be better to break these into separate commits? Otherwise, LGTM. |
Motivation for this change
I was seeing
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/
)it's needed by the jack support