Added JS language support
This commit is contained in:
		
							parent
							
								
									a91fb54e24
								
							
						
					
					
						commit
						34bba528b3
					
				
							
								
								
									
										36
									
								
								modules/users/modules/language/js.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								modules/users/modules/language/js.nix
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,36 @@ | |||||||
|  | { | ||||||
|  |   lib, | ||||||
|  |   config, | ||||||
|  |   pkgs, | ||||||
|  |   ... | ||||||
|  | }: | ||||||
|  | 
 | ||||||
|  | with lib; | ||||||
|  | let | ||||||
|  |   cfg = config.modules.js; | ||||||
|  | in | ||||||
|  | { | ||||||
|  |   options.modules.js = { | ||||||
|  |     enable = mkEnableOption "js"; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|  |   config = mkIf cfg.enable { | ||||||
|  |     # Development packages | ||||||
|  |     home.packages = with pkgs; [ | ||||||
|  |       nodejs | ||||||
|  |       tailwindcss | ||||||
|  |     ]; | ||||||
|  | 
 | ||||||
|  |     # VSCode configuration | ||||||
|  |     programs.vscode = { | ||||||
|  |       extensions = with pkgs.vscode-extensions; [ | ||||||
|  |         bradlc.vscode-tailwindcss | ||||||
|  |       ]; | ||||||
|  | 
 | ||||||
|  |       userSettings = { }; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     # Neovim configuration | ||||||
|  |     programs.nixvim = { }; | ||||||
|  |   }; | ||||||
|  | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jan-Bulthuis
						Jan-Bulthuis