mirror of
https://github.com/Cian-H/My_NixOS_Config.git
synced 2025-12-22 23:11:57 +00:00
Patched slow obsidian boot
This commit is contained in:
@@ -76,11 +76,28 @@
|
|||||||
])
|
])
|
||||||
++ (with unstablePkgs; [
|
++ (with unstablePkgs; [
|
||||||
vimPlugins.mason-lspconfig-nvim
|
vimPlugins.mason-lspconfig-nvim
|
||||||
obsidian
|
(writeShellScriptBin "obsidian" '' # Patch for obsiidan GPU issues
|
||||||
|
exec ${unstablePkgs.obsidian}/bin/obsidian --disable-gpu "$@"
|
||||||
|
'')
|
||||||
zed-editor
|
zed-editor
|
||||||
zotero
|
zotero
|
||||||
])
|
])
|
||||||
++ [
|
++ [
|
||||||
inputs.zen-browser.packages.x86_64-linux.default
|
inputs.zen-browser.packages.x86_64-linux.default
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# manually add desktop file for patched obsidian
|
||||||
|
home.file.".local/share/applications/obsidian.desktop".text = ''
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Obsidian
|
||||||
|
Exec=${pkgs.writeShellScriptBin "obsidian-launcher" ''
|
||||||
|
exec ${pkgs.obsidian}/bin/obsidian --disable-gpu "$@"
|
||||||
|
''}/bin/obsidian-launcher %U
|
||||||
|
Icon=${pkgs.obsidian}/share/icons/hicolor/512x512/apps/obsidian.png
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=Office;
|
||||||
|
MimeType=x-scheme-handler/obsidian;
|
||||||
|
Keywords=obsidian;notes;
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user