| 
									
										
										
										
											2025-07-26 02:35:57 +01:00
										 |  |  | { config, inputs, lib, ... }: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   flake.modules.homeManager.base = | 
					
						
							|  |  |  |     hmArgs@{ pkgs, ... }: | 
					
						
							|  |  |  |     let | 
					
						
							|  |  |  |       # Ideally: | 
					
						
							|  |  |  |       # nixvim = self.packages.${pkgs.system}.nixvim; | 
					
						
							|  |  |  |       # but https://github.com/danth/stylix/pull/415#issuecomment-2832398958 | 
					
						
							| 
									
										
										
										
											2025-08-02 23:26:16 +01:00
										 |  |  |       neovim = inputs.nixvim.legacyPackages.${pkgs.system}.makeNixvimWithModule { | 
					
						
							| 
									
										
										
										
											2025-07-26 02:35:57 +01:00
										 |  |  |         inherit pkgs; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         extraSpecialArgs.homeConfig = hmArgs.config; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         module = config.flake.modules.nixvim.custom; | 
					
						
							|  |  |  |       }; | 
					
						
							|  |  |  |     in | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       home = { | 
					
						
							| 
									
										
										
										
											2025-08-02 23:26:16 +01:00
										 |  |  |         packages = [ neovim ]; | 
					
						
							|  |  |  |         sessionVariables.EDITOR = lib.mkForce (lib.getExe neovim); | 
					
						
							| 
									
										
										
										
											2025-07-26 02:35:57 +01:00
										 |  |  |       }; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  | } |