forked from jan-leila/nix-config
		
	added ollama plugin
This commit is contained in:
		
							parent
							
								
									da7a41ce50
								
							
						
					
					
						commit
						62ad7255ba
					
				
					 2 changed files with 19 additions and 9 deletions
				
			
		|  | @ -51,15 +51,23 @@ in { | |||
|       } | ||||
|     ); | ||||
| 
 | ||||
|     # TODO: this should reference the home directory from the user config | ||||
|     services.openssh.hostKeys = [ | ||||
|       { | ||||
|         comment = "leyla@" + config.networking.hostName; | ||||
|         path = "/home/leyla/.ssh/leyla_" + config.networking.hostName + "_ed25519"; | ||||
|         rounds = 100; | ||||
|         type = "ed25519"; | ||||
|       } | ||||
|     ]; | ||||
|     services = { | ||||
|       ollama = { | ||||
|         enable = true; | ||||
|         acceleration = lib.mkIf cfg.hasGPU "cuda"; | ||||
|       }; | ||||
| 
 | ||||
| 
 | ||||
|       # TODO: this should reference the home directory from the user config | ||||
|       openssh.hostKeys = [ | ||||
|         { | ||||
|           comment = "leyla@" + config.networking.hostName; | ||||
|           path = "/home/leyla/.ssh/leyla_" + config.networking.hostName + "_ed25519"; | ||||
|           rounds = 100; | ||||
|           type = "ed25519"; | ||||
|         } | ||||
|       ]; | ||||
|     }; | ||||
| 
 | ||||
|     home-manager.users.leyla = lib.mkIf (cfg.isFullUser || cfg.isThinUser) (import ./home.nix); | ||||
|   }; | ||||
|  |  | |||
|  | @ -106,6 +106,8 @@ in { | |||
| 
 | ||||
|                   # misc extensions | ||||
|                   bungcip.better-toml | ||||
| 
 | ||||
|                   open-vsx."10nates".ollama-autocoder | ||||
|                 ] | ||||
|                 ++ (with vscode-marketplace; [ | ||||
|                   # js extensions | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue