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
addGithubCopilot = ide: pkgs.jetbrains.plugins.addPlugins ide ["github-copilot"];
in {
{
pkgs,
inputs,
...
}: {
# Enable Visual Studio Code (VSCode) program
programs.vscode = {
enable = true;
@ -11,14 +12,27 @@ in {
};
# List of packages to be installed
home.packages = [
# Toolchain
pkgs.gcc # GCC compiler
pkgs.python39 # Python 3.9 interpreter
# Add GitHub Copilot plugin to Jetbrains IDEs
(addGithubCopilot pkgs.jetbrains.clion)
(addGithubCopilot pkgs.jetbrains.idea-ultimate)
(addGithubCopilot pkgs.jetbrains.pycharm-professional)
];
home.packages = with pkgs;
[
# Toolchain
gcc
jdk
unstable.python313 # Note: keep this in sync with school.
]
# Install jetbrains IDEs with plugins
++ (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
}