aboutsummaryrefslogtreecommitdiff
path: root/modules/home-manager/vscode.nix
blob: 69d813a1821614f766263a65702f0850c6e6b70f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
  config,
  lib,
  pkgs,
  ...
}:

{
  options.vscode.enable = lib.mkEnableOption "Enable vscode and setup";
  config = lib.mkIf config.vscode.enable {
    programs.vscode = {
      enable = true;
      mutableExtensionsDir = false;
      profiles.default = {
        enableUpdateCheck = true;
        enableExtensionUpdateCheck = true;

        userSettings = {
          "update.mode" = "none";
          "workbench.colorTheme" = "Minimal";
          "editor.fontFamily" = "monospace";
          "editor.tabSize" = 2;
          "editor.minimap.enabled" = false;
          "terminal.integrated.cursorStyle" = "underline";
          "terminal.integrated.cursorStyleInactive" = "underline";
          "terminal.integrated.fontFamily" = "monospace";
          "terminal.integrated.fontSize" = 13;
          "git.autofetch" = true;
          "window.controlsStyle" = "custom";
        };

        extensions = (
          with pkgs.vscode-extensions;
          [
            ms-vscode.cmake-tools
            ms-azuretools.vscode-docker
            eamodio.gitlens
            ms-python.python
            golang.go
            rust-lang.rust-analyzer
            vscjava.vscode-maven
            sumneko.lua
            #fwcd.kotlin
            bradlc.vscode-tailwindcss
            adpyke.codesnap
            esbenp.prettier-vscode
          ]
          ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
            {
              name = "minimalist-dark";
              publisher = "nichabosh";
              version = "1.0.0";
              sha256 = "sha256-lw+Scfada6DycLdRT2Cz+Fd12JucglIrw3uRd2ZhabQ=";
            }
          ]
        );
      };
    };
  };
}