feat(desktop): add obsidian (with wayland support)

This commit is contained in:
Moritz Böhme 2024-02-17 09:43:48 +01:00
parent e07c55d902
commit ad8ff7d016
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -90,6 +90,19 @@ in
stable.texlive.combined.scheme-full # NOTE breaks often
thunderbird
vlc
(symlinkJoin {
name = "obsidian-wayland";
paths = [ obsidian ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/obsidian \
--add-flags "--socket=wayland --enable-features=UseOzonePlatform --ozone-platform=wayland"
'';
})
];
nixpkgs.config.permittedInsecurePackages = [
"electron-25.9.0" # obsidian
];
programs.nix-ld.enable = true;