forked from jan-leila/nix-config
		
	removed continue vscode plugin
This commit is contained in:
		
							parent
							
								
									c863b8c4b5
								
							
						
					
					
						commit
						1d7e0d11f0
					
				
					 4 changed files with 3 additions and 105 deletions
				
			
		|  | @ -1,73 +0,0 @@ | |||
| { | ||||
|   lib, | ||||
|   pkgs, | ||||
|   config, | ||||
|   osConfig, | ||||
|   ... | ||||
| }: let | ||||
|   ai-tooling-enabled = config.user.continue.enable && osConfig.host.ai.enable; | ||||
| in { | ||||
|   options.user.continue = { | ||||
|     enable = lib.mkEnableOption "should continue be enabled on this machine"; | ||||
|     docs = lib.mkOption { | ||||
|       type = lib.types.attrsOf (lib.types.submodule ({name, ...}: { | ||||
|         options = { | ||||
|           name = lib.mkOption { | ||||
|             type = lib.types.str; | ||||
|             default = name; | ||||
|           }; | ||||
|           startUrl = lib.mkOption { | ||||
|             type = lib.types.str; | ||||
|           }; | ||||
|         }; | ||||
|       })); | ||||
|     }; | ||||
|     context = lib.mkOption { | ||||
|       type = lib.types.attrsOf (lib.types.submodule ({name, ...}: { | ||||
|         options = { | ||||
|           provider = lib.mkOption { | ||||
|             type = lib.types.str; | ||||
|             default = name; | ||||
|           }; | ||||
|         }; | ||||
|       })); | ||||
|       default = { | ||||
|         "code" = {}; | ||||
|         "docs" = {}; | ||||
|         "diff" = {}; | ||||
|         "terminal" = {}; | ||||
|         "problems" = {}; | ||||
|         "folder" = {}; | ||||
|         "codebase" = {}; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   config = | ||||
|     lib.mkIf ai-tooling-enabled | ||||
|     (lib.mkMerge [ | ||||
|       { | ||||
|         home = { | ||||
|           file = { | ||||
|             ".continue/config.yaml".source = (pkgs.formats.yaml {}).generate "continue-config" { | ||||
|               name = "Assistant"; | ||||
|               version = "1.0.0"; | ||||
|               schema = "v1"; | ||||
|               models = lib.attrsets.attrValues osConfig.host.ai.models; | ||||
|               context = lib.attrsets.attrValues config.user.continue.context; | ||||
|               docs = lib.attrsets.attrValues config.user.continue.docs; | ||||
|             }; | ||||
|           }; | ||||
|         }; | ||||
|       } | ||||
|       (lib.mkIf osConfig.host.impermanence.enable { | ||||
|         home.persistence."/persist${config.home.homeDirectory}" = { | ||||
|           directories = [ | ||||
|             ".continue/index" | ||||
|             ".continue/sessions" | ||||
|           ]; | ||||
|           allowOther = true; | ||||
|         }; | ||||
|       }) | ||||
|     ]); | ||||
| } | ||||
|  | @ -6,7 +6,6 @@ | |||
|     ./flipperzero.nix | ||||
|     ./i18n.nix | ||||
|     ./openssh.nix | ||||
|     ./continue.nix | ||||
|     ./gnome.nix | ||||
|     ./programs | ||||
|   ]; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue