installed nix mcp server
This commit is contained in:
		
							parent
							
								
									9f94a218cc
								
							
						
					
					
						commit
						5a53a7bac4
					
				
					 1 changed files with 5 additions and 9 deletions
				
			
		|  | @ -15,14 +15,6 @@ | |||
|       profile.extraExtensions.claudeDev.enable | ||||
|       && profile.extraExtensions.claudeDev.mcp.nixos.enable | ||||
|   ) (lib.attrValues config.programs.vscode.profiles); | ||||
| 
 | ||||
|   mcpServersConfig = lib.mkMerge [ | ||||
|     (lib.mkIf anyProfileHasMcpNixos { | ||||
|       nixos = { | ||||
|         command = "${mcp-nixos}/bin/mcp-nixos"; | ||||
|       }; | ||||
|     }) | ||||
|   ]; | ||||
| in { | ||||
|   options.programs.vscode.profiles = lib.mkOption { | ||||
|     type = lib.types.attrsOf (lib.types.submodule ({config, ...}: { | ||||
|  | @ -51,7 +43,11 @@ in { | |||
|   config = lib.mkIf anyProfileHasMcpNixos { | ||||
|     home.file."${config.xdg.configHome}/VSCodium/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json" = { | ||||
|       text = builtins.toJSON { | ||||
|         mcpServers = mcpServersConfig; | ||||
|         mcpServers = { | ||||
|           nixos = { | ||||
|             command = "${mcp-nixos}/bin/mcp-nixos"; | ||||
|           }; | ||||
|         }; | ||||
|       }; | ||||
|       force = true; | ||||
|     }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue