feat: manage jetbrains plugins with nix-jetbrains-plugins

This commit is contained in:
♥ Minnie ♥ 2025-03-07 00:22:59 +08:00
parent d7e6dd78e6
commit 4215148d58
Signed by: jasmine
GPG key ID: 8563E358D4E8040E

View file

@ -1,7 +1,8 @@
{pkgs, ...}: let {
# Define a function to add GitHub Copilot plugin to Jetbrains IDEs pkgs,
addGithubCopilot = ide: pkgs.jetbrains.plugins.addPlugins ide ["github-copilot"]; inputs,
in { ...
}: {
# Enable Visual Studio Code (VSCode) program # Enable Visual Studio Code (VSCode) program
programs.vscode = { programs.vscode = {
enable = true; enable = true;
@ -11,14 +12,27 @@ in {
}; };
# List of packages to be installed # List of packages to be installed
home.packages = [ home.packages = with pkgs;
# Toolchain [
pkgs.gcc # GCC compiler # Toolchain
pkgs.python39 # Python 3.9 interpreter gcc
jdk
# Add GitHub Copilot plugin to Jetbrains IDEs unstable.python313 # Note: keep this in sync with school.
(addGithubCopilot pkgs.jetbrains.clion) ]
(addGithubCopilot pkgs.jetbrains.idea-ultimate) # Install jetbrains IDEs with plugins
(addGithubCopilot pkgs.jetbrains.pycharm-professional) ++ (with inputs.nix-jetbrains-plugins.lib."${system}"; [
]; (buildIdeWithPlugins pkgs.jetbrains "clion" [
"com.github.copilot"
"gruvbox-material-dark"
])
(buildIdeWithPlugins pkgs.jetbrains "idea-ultimate" [
"com.github.copilot"
"gruvbox-material-dark"
])
(buildIdeWithPlugins pkgs.jetbrains "pycharm-professional" [
"com.github.copilot"
"gruvbox-material-dark"
])
]);
# https://github.com/theCapypara/nix-jetbrains-plugins
} }