nix-config/home/features/desktop/common/flatpak.nix
GHOSCHT 6652435bd4
Switch Obsidian to flatpak from native
Had problems getting it to display on Wayland
2024-05-06 17:39:21 +02:00

32 lines
668 B
Nix

{
inputs,
pkgs,
vars,
...
}: {
imports = [inputs.flatpaks.homeManagerModules.default];
services.flatpak = {
remotes.flathub = "https://flathub.org/repo/flathub.flatpakrepo";
packages = [
"flathub:app/us.zoom.Zoom//stable"
"flathub:app/com.discordapp.Discord//stable"
"flathub:app/md.obsidian.Obsidian//stable"
];
overrides = {
global = {
filesystems = [
"~/.local/share/icons"
];
environment = {
"MOZ_ENABLE_WAYLAND" = 1;
};
};
"md.obsidian.Obsidian" = {
sockets = [
"wayland"
"system-bus"
];
};
};
};
}