2024-05-17 08:04:19 -04:00
|
|
|
{ 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
|
2024-06-02 10:04:05 -04:00
|
|
|
ms-vscode-remote.remote-ssh
|
|
|
|
|
ms-azuretools.vscode-docker
|
|
|
|
|
dbaeumer.vscode-eslint
|
|
|
|
|
vue.volar
|
2024-05-17 08:04:19 -04:00
|
|
|
];
|
|
|
|
|
userSettings = {
|
|
|
|
|
"workbench.colorTheme" = "Catppuccin Mocha";
|
|
|
|
|
"editor.tabSize" = 2;
|
|
|
|
|
"editor.insertSpaces" = true;
|
|
|
|
|
"git.autofetch" = true;
|
|
|
|
|
# "git.enableSmartCommit" = true;
|
|
|
|
|
"git.confirmSync" = false;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|