{ config, pkgs, lib, libs, ... }: let extensions = with pkgs.vscode-extensions; [ bierner.markdown-mermaid esbenp.prettier-vscode foxundermoon.shell-format github.copilot github.copilot-chat golang.go jnoortheen.nix-ide pkief.material-icon-theme ] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [ ]; in { imports = [ ]; programs = { vscode = { enable = true; } // (if lib.versionAtLeast config.home.stateVersion "25.05" then { profiles.default = { inherit extensions; }; } else { inherit extensions; }); }; xdg.configFile = { "Code/User/keybindings.json" = { source = config.home-libs.mkOutOfStoreSymlink "modules/home/vscode/keybindings.json"; }; "Code/User/settings.json" = { source = config.home-libs.mkOutOfStoreSymlink "modules/home/vscode/settings.json"; }; }; }