nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
6.65k stars 1.75k forks source link

Add ``Zrythm`` module #4500

Open nyabinary opened 11 months ago

nyabinary commented 11 months ago

Description

For controlling plugins you want to use declaratively, as well as control settings of Zrythm such as forcing Zrythm to use Wayland only instead of XWayland which is on by default for Wayland-enabled systems for plugin compatibility.

stale[bot] commented 8 months ago

Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting.

If you are the original author of the issue

* If this is resolved, please consider closing it so that the maintainers know not to focus on this. * If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

If you are not the original author of the issue

* If you are also experiencing this issue, please add details of your situation to help with the debugging process. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

Memorandum on closing issues

Don't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.

bandithedoge commented 8 months ago

Zrythm respects environment variables so plugin visibility is only a matter of setting those. For example for LV2 you can set LV2_PATH to /etc/profiles/per-user/$USER/lib/lv2 for plugins installed in home-manager's home.packages. On NixOS, musnix handles this for plugins installed through environment.systemPackages as well as home-manager: https://github.com/musnix/musnix/blob/master/modules/base.nix#L68-L83

Zrythm should use Wayland if you have the GDK_BACKEND environment variable set to wayland: https://manual.zrythm.org/en/configuration/ui-scaling-and-wayland.html#about-wayland. That said, unless you use plugin bridging you should really stick to XWayland as most existing plugins are built against X11 only.