From 4719e6d5404f4c411a0046bf9f224437174197fa Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Mon, 13 Nov 2023 11:56:03 +0100 Subject: [PATCH] joplin-desktop --- modules/joplin-desktop.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/joplin-desktop.nix b/modules/joplin-desktop.nix index 42aca5f..c27695f 100644 --- a/modules/joplin-desktop.nix +++ b/modules/joplin-desktop.nix @@ -1,15 +1,17 @@ { config, pkgs, lib, ...}: { # TODO: Similar to signal-desktop, joplin-desktop crashes frequently on Wayland. - # As of 2023-10-20, the stable version did not start, - # but unstable does. + # As of 2023-10-20, the stable version did not start, but unstable does. environment.sessionVariables.NIXOS_OZONE_WL = lib.mkIf (config.services.xserver.displayManager.gdm.wayland) "1"; users.users.yoda = { packages = with pkgs; [ - #joplin-desktop # Markdown notes - unstable.joplin-desktop # Markdown notes + ( + if (config.services.xserver.displayManager.gdm.wayland) + then unstable.joplin-desktop # Markdown notes + else joplin-desktop # Markdown notes + ) ]; }; }