nixos-config/modules/home/vscode/default.nix

37 lines
1.2 KiB
Nix
Raw Normal View History

2023-11-05 17:56:55 +01:00
{ pkgs, ... }:
{
2023-11-05 11:40:44 +01:00
programs.vscode = {
enable = true;
2023-11-09 23:17:29 +01:00
package = pkgs.vscodium;
2023-11-08 20:38:46 +01:00
extensions = with pkgs.vscode-extensions; [
bbenoist.nix
2023-12-01 19:06:23 +01:00
ms-python.python
2023-11-09 23:11:13 +01:00
catppuccin.catppuccin-vsc
2023-11-09 23:11:32 +01:00
catppuccin.catppuccin-vsc-icons
2023-11-05 11:40:44 +01:00
];
2023-11-08 20:38:46 +01:00
userSettings = {
"update.mode" = "none";
"extensions.autoUpdate" = false; # This stuff fixes vscode freaking out when theres an update
2023-12-06 18:53:50 +01:00
"window.titleBarStyle" = "custom"; # needed otherwise vscode crashes, see https://github.com/NixOS/nixpkgs/issues/246509
2023-11-08 20:38:46 +01:00
"window.menuBarVisibility" = "toggle";
"editor.fontFamily" = "'JetBrainsMono Nerd Font', 'SymbolsNerdFont', 'monospace', monospace";
"terminal.integrated.fontFamily" = "'JetBrainsMono Nerd Font', 'SymbolsNerdFont'";
2023-12-06 18:58:55 +01:00
"editor.fontSize" = 16;
2023-11-08 20:38:46 +01:00
"workbench.colorTheme" = "Catppuccin Mocha";
2023-11-09 23:17:29 +01:00
"workbench.iconTheme" = "catppuccin-mocha";
2023-11-09 23:11:13 +01:00
"vsicons.dontShowNewVersionMessage" = true;
2023-11-08 20:38:46 +01:00
"editor.fontLigatures" = true;
"editor.minimap.enabled" = false;
2023-12-06 18:53:50 +01:00
"editor.mouseWheelZoom" = true;
# keyboard shortcuts
2023-11-08 20:38:46 +01:00
"editor.action.commentLine" = "ctrl+d";
2023-12-06 18:53:50 +01:00
"workbench.action.files.saveFiles" = "ctrl+s";
2023-12-06 18:58:55 +01:00
"workbench.action.files.save" = "ctrl+shift+s";
2023-11-08 20:38:46 +01:00
};
2023-11-05 11:40:44 +01:00
};
}