{ pkgs, lib, isDarwin, ... }: { programs.vscodium = { enable = true; package = pkgs.vscodium; profiles.default = { extensions = (with pkgs.vscode-extensions; [ charliermarsh.ruff editorconfig.editorconfig gruntfuggly.todo-tree hediet.vscode-drawio jnoortheen.nix-ide mechatroner.rainbow-csv ms-toolsai.jupyter ms-python.python ms-vscode-remote.remote-ssh myriad-dreamin.tinymist rust-lang.rust-analyzer timonwong.shellcheck unifiedjs.vscode-mdx ]) ++ pkgs.nix4vscode.forOpenVsx [ "akamud.vscode-theme-onedark" "astral-sh.ty" "modular-mojotools.vscode-mojo" ] ++ lib.optionals (!isDarwin) ( with pkgs.vscode-extensions; [ # markdown-pdf pins ungoogled-chromium (Linux-only) as its PDF # renderer. On macOS, install it from the marketplace by hand and set # markdown-pdf.executablePath to Chrome/Brave, or render via typst. yzane.markdown-pdf ] ); userSettings = { "editor.fontFamily" = "'JetBrains Mono', monospace"; "editor.fontSize" = 14; "editor.formatOnSave" = true; "workbench.colorTheme" = "One Dark Pro"; "explorer.confirmDragAndDrop" = false; "explorer.confirmDelete" = false; "git.confirmSync" = false; "git.enableSmartCommit" = true; "files.associations" = { "*.qmd" = "markdown"; }; }; }; }; }