feat: manage jetbrains plugins with nix-jetbrains-plugins
This commit is contained in:
		
							parent
							
								
									d7e6dd78e6
								
							
						
					
					
						commit
						4215148d58
					
				
					 1 changed files with 28 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue