{ config, pkgs, lib, ... }: { options = { vscode = { enable = lib.mkEnableOption { description = "Enable Visual Studio Code"; default = false; }; }; }; config = lib.mkIf (config.gui.enable && config.vscode.enable) { home-manager.users.${config.user} = { nixpkgs.config.allowUnfree = true; programs.vscode = { enable = true; extensions = with pkgs.vscode-extensions; [ bbenoist.nix catppuccin.catppuccin-vsc ms-vscode-remote.remote-ssh ms-azuretools.vscode-docker dbaeumer.vscode-eslint vue.volar esbenp.prettier-vscode firefox-devtools.vscode-firefox-debug davidanson.vscode-markdownlint ]; userSettings = { "workbench.colorTheme" = "Catppuccin Mocha"; "editor.tabSize" = 2; "editor.insertSpaces" = true; "git.autofetch" = true; # "git.enableSmartCommit" = true; "git.confirmSync" = false; }; }; }; }; }