forked from jan-leila/nix-config
		
	added more options to aiCode
This commit is contained in:
		
							parent
							
								
									1f0a147a42
								
							
						
					
					
						commit
						0fd54a5494
					
				
					 2 changed files with 15 additions and 0 deletions
				
			
		|  | @ -16,6 +16,18 @@ in { | |||
|             description = "what host should be used for ollama"; | ||||
|             default = null; | ||||
|           }; | ||||
|           inlineCompletion = { | ||||
|             enable = lib.mkOption { | ||||
|               type = lib.types.bool; | ||||
|               description = "should inline completion be enabled"; | ||||
|               default = true; | ||||
|             }; | ||||
|             model = lib.mkOption { | ||||
|               type = lib.types.nullOr lib.types.str; | ||||
|               description = "what model should be used for ollama"; | ||||
|               default = null; | ||||
|             }; | ||||
|           }; | ||||
|         }; | ||||
|       }; | ||||
|       config = lib.mkIf config.extraExtensions.aiCode.enable { | ||||
|  | @ -24,6 +36,8 @@ in { | |||
|         ]; | ||||
|         userSettings = { | ||||
|           "aiCode.ollamaHost" = lib.mkIf (config.extraExtensions.aiCode.ollamaHost != null) config.extraExtensions.aiCode.ollamaHost; | ||||
|           "aiCode.inlineCompletion.enable" = config.extraExtensions.aiCode.inlineCompletion.enable; | ||||
|           "aiCode.inlineCompletion.model" = lib.mkIf (config.extraExtensions.aiCode.inlineCompletion.model != null) config.extraExtensions.aiCode.inlineCompletion.model; | ||||
|         }; | ||||
|       }; | ||||
|     })); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue