nixos/home/vscode/home.nix

35 lines
773 B
Nix
Raw Normal View History

2025-01-13 11:52:09 +08:00
{
pkgs,
lib,
config,
...
}:
with lib;
let
cfg = config.passthrough.vscode;
2024-05-13 08:38:38 +08:00
theme = config.passthrough.catppuccin.enable;
2025-01-13 11:52:09 +08:00
in
mkIf cfg.enable {
programs.vscode = {
enable = true;
package = pkgs.vscodium;
2025-02-26 22:42:17 +08:00
mutableExtensionsDir = false;
profiles.default = {
enableUpdateCheck = false;
enableExtensionUpdateCheck = false;
extensions = with pkgs.vscode-extensions; [
catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons
bbenoist.nix
golang.go
rust-lang.rust-analyzer
];
userSettings = {
"workbench.colorTheme" = mkIf theme "Catppuccin Mocha";
"workbench.iconTheme" = mkIf theme "catppuccin-mocha";
"[nix]"."editor.tabSize" = 2;
};
};
};
}