From 6652435bd41cfb3846b9ee54bd5071f0b3381758 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Mon, 6 May 2024 17:39:21 +0200 Subject: [PATCH] Switch Obsidian to flatpak from native Had problems getting it to display on Wayland --- home/features/desktop/common/flatpak.nix | 9 ++++++--- home/features/desktop/common/notes.nix | 1 - 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/home/features/desktop/common/flatpak.nix b/home/features/desktop/common/flatpak.nix index 6294245..8df46f2 100644 --- a/home/features/desktop/common/flatpak.nix +++ b/home/features/desktop/common/flatpak.nix @@ -10,18 +10,21 @@ packages = [ "flathub:app/us.zoom.Zoom//stable" "flathub:app/com.discordapp.Discord//stable" + "flathub:app/md.obsidian.Obsidian//stable" ]; overrides = { - "global" = { + global = { filesystems = [ "~/.local/share/icons" ]; environment = { "MOZ_ENABLE_WAYLAND" = 1; }; + }; + "md.obsidian.Obsidian" = { sockets = [ - "!x11" - "fallback-x11" + "wayland" + "system-bus" ]; }; }; diff --git a/home/features/desktop/common/notes.nix b/home/features/desktop/common/notes.nix index e5cc5f1..2421d3e 100644 --- a/home/features/desktop/common/notes.nix +++ b/home/features/desktop/common/notes.nix @@ -1,6 +1,5 @@ {pkgs, ...}: { home.packages = with pkgs; [ xournalpp - obsidian ]; }