Hyprland: Difference between revisions
m →NixOS 24.05 and Below: Remove function parameters to make snippet clearer. |
→Troubleshooting: Add section for electron applications to use a wayland backend instead of x11. |
||
| Line 218: | Line 218: | ||
security.pam.services.swaylock = {}; | security.pam.services.swaylock = {}; | ||
</code> | </code> | ||
=== Electron applications defaulting to X11 rather than Wayland === | |||
Set the environment variable <code>NIXOS_OZONE_WL</code> to "1" in your NixOS configuration: | |||
{{file|configuration.nix|nix|<nowiki> | |||
{ | |||
environment.sessionVariables.NIXOS_OZONE_WL = "1"; | |||
} | |||
</nowiki>}} | |||
== See also == | == See also == | ||