obsidian: fix nvidia-gpu causing issues
This commit is contained in:
parent
d28ceda23d
commit
9a4b7ae215
2 changed files with 18 additions and 2 deletions
15
overlays/obsidian/default.nix
Normal file
15
overlays/obsidian/default.nix
Normal 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;
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue