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/sway: add programs.sway.extraOptions #76437
Conversation
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.
Hm, tbh I'm not sure what do think of this. I guess this is only/mainly relevant when using the session file with a login manager.
It might be better to add an option like extraOptions
(string or e.g. list of strings) to keep it more generic and add examples for verbose
, debug
, unsupported-gpu
(proprietary AMD), and my-next-gpu-wont-be-nvidia
(Nvidia).
In fact sway runs on Intel card in such setup, but it detects nvidia drivers alongside and so refuses to start without magic argument
If it does indeed run without proprietary drivers this could qualify for a bug report I guess (maybe one should ask very politely though, especially if the name of a certain company (it who must not be named) is mentioned, which might cause "discomfort" for some readers).
Thank you much for the answer!
Mainly for that, right.
Will do! Thanks for suggestion.
Yes, it runs on Intel card. I've created an upstream issue, but I doubt they will invest time into this swaywm/sway#4838 |
This is what I used to do to support Bumblebee: It worked fine at finding an appropriate GPU and forcing it as the Sway one. |
I agree with @primeos: we should not support wrapper options explicitly that are not recommended and/or supported by upstream. On the other hand, I think that providing a |
@primeos ping |
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.
@gnidorah sorry for the delay and thanks for the ping :)
I gave it a test and the build did fail if the GTK wrapper was enabled:
/build/.attr-0: line 11: --add-flags: command not found
I pushed a fix that tries to simplify the wrapProgram
mess I've created... :o :D
(And I've added an extra note about opening issues with proprietary drivers as upstream would most likely want us to do this.)
Are you ok with these changes?
Sure. Thank you! 😄 |
Merged, thanks for the PR :) |
@primeos Thank you! |
Motivation for this change
Needed after Optimus PR #66601
In fact sway runs on Intel card in such setup, but it detects nvidia drivers alongside and so refuses to start without magic argument
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)Notify maintainers
cc @primeos