obsidian: fix nvidia-gpu causing issues

This commit is contained in:
Christoph Hollizeck 2024-10-12 00:31:33 +02:00
parent 8a1b154cfe
commit 6879fd8e82
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 1763BB530F50279E
2 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,15 @@
{ ... }:
final: prev: {
obsidian = prev.obsidian.overrideAttrs (oldAttrs: rec {
# Add arguments to the .desktop entry
desktopItem = oldAttrs.desktopItem.override (desktopitem: {
exec = "${desktopitem.exec} --disable-gpu ";
});
# Update the install script to use the new .desktop entry
installPhase = builtins.replaceStrings [ "${oldAttrs.desktopItem}" ] [
"${desktopItem}"
] oldAttrs.installPhase;
});
}