2023-10-20 14:58:29 +02:00
|
|
|
{ config, pkgs, lib, ...}:
|
|
|
|
{
|
|
|
|
# TODO: Similar to signal-desktop, joplin-desktop crashes frequently on Wayland.
|
2023-11-13 11:56:03 +01:00
|
|
|
# As of 2023-10-20, the stable version did not start, but unstable does.
|
2023-10-20 14:58:29 +02:00
|
|
|
|
|
|
|
environment.sessionVariables.NIXOS_OZONE_WL = lib.mkIf (config.services.xserver.displayManager.gdm.wayland) "1";
|
|
|
|
|
|
|
|
users.users.yoda = {
|
|
|
|
packages = with pkgs; [
|
2023-11-13 11:56:03 +01:00
|
|
|
(
|
|
|
|
if (config.services.xserver.displayManager.gdm.wayland)
|
|
|
|
then unstable.joplin-desktop # Markdown notes
|
|
|
|
else joplin-desktop # Markdown notes
|
|
|
|
)
|
2023-10-20 14:58:29 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|