26 lines
767 B
Nix
26 lines
767 B
Nix
{ self, inputs, ... }: {
|
|
flake.modules.homeManager.vscode = { config, pkgs, lib, ... }: {
|
|
options.my-vscode = {
|
|
enable = lib.mkEnableOption "Enable nix-managed VSCode";
|
|
};
|
|
|
|
config = lib.mkIf config.my-vscode.enable {
|
|
programs.vscode = {
|
|
enable = true;
|
|
package = pkgs.vscode;
|
|
profiles.default.extensions = with pkgs.vscode-extensions; [
|
|
mhutchie.git-graph
|
|
ms-vscode-remote.vscode-remote-extensionpack
|
|
ms-python.python
|
|
ms-python.vscode-pylance
|
|
ms-toolsai.jupyter
|
|
charliermarsh.ruff
|
|
github.vscode-pull-request-github
|
|
github.vscode-github-actions
|
|
github.copilot
|
|
catppuccin.catppuccin-vsc
|
|
];
|
|
};
|
|
};
|
|
};
|
|
} |