{ lib, config, pkgs, ... }: let inherit (lib) mkIf; cfg = config.programs.vscode; in { config = mkIf cfg.enable { programs.vscode = { package = pkgs.vscode; default = { enableUpdateCheck = false; extensions = with pkgs.vscode-extensions; [ rust-lang.rust-analyzer ms-vscode-remote.remote-ssh ms-vscode-remote.remote-ssh-edit tamasfe.even-better-toml ]; userSettings = { editor.formatOnSave = true; terminal.integrated.inheritEnv = false; git.autofetch = true; }; }; }; }; }