mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	docs/installation: fix logical errors in standalone chapters
This commit is contained in:
		
					parent
					
						
							
								71e7072fcf
							
						
					
				
			
			
				commit
				
					
						4e82ded53a
					
				
			
		
					 2 changed files with 13 additions and 16 deletions
				
			
		|  | @ -6,7 +6,7 @@ your system packages to make it available across your system. | ||||||
| 
 | 
 | ||||||
| The following is an example installation of `nvf` as a standalone package with | The following is an example installation of `nvf` as a standalone package with | ||||||
| the default theme enabled. You may use other options inside `config.vim` in | the default theme enabled. You may use other options inside `config.vim` in | ||||||
| `configModule`, but this example will not cover that. | `configModule`, but this example will not cover that extensively. | ||||||
| 
 | 
 | ||||||
| ```nix | ```nix | ||||||
| { | { | ||||||
|  | @ -30,23 +30,22 @@ the default theme enabled. You may use other options inside `config.vim` in | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     customNeovim = nvf.lib.neovimConfiguration { |     customNeovim = nvf.lib.neovimConfiguration { | ||||||
|       modules = [configModule]; |  | ||||||
|       inherit pkgs; |       inherit pkgs; | ||||||
|  |       modules = [configModule]; | ||||||
|     }; |     }; | ||||||
|   in { |   in { | ||||||
|     # this will make the package available as a flake input |     # This will make the package available as a flake output under 'packages' | ||||||
|     packages.${system}.my-neovim = customNeovim.neovim; |     packages.${system}.my-neovim = customNeovim.neovim; | ||||||
| 
 | 
 | ||||||
|     # this is an example home-manager configuration |     # Example Home-Manager configuration using the configured Neovim package | ||||||
|     # using the built neovim package |  | ||||||
|     homeConfigurations = { |     homeConfigurations = { | ||||||
|       "your-username@your-hostname" = home-manager.lib.homeManagerConfiguration { |       "your-username@your-hostname" = home-manager.lib.homeManagerConfiguration { | ||||||
|         # ... |         # ... | ||||||
|         modules = [ |         modules = [ | ||||||
|           ./home.nix |           # This will make Neovim available to users using the Home-Manager | ||||||
| 
 |           # configuration. To make the package available to all users, prefer | ||||||
|           # this will make wrapped neovim available in your system packages |           # environment.systemPackages in your NixOS configuration. | ||||||
|           {environment.systemPackages = [customNeovim.neovim];} |           {home.packages = [customNeovim.neovim];} | ||||||
|         ]; |         ]; | ||||||
|         # ... |         # ... | ||||||
|       }; |       }; | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ your system packages to make it available across your system. | ||||||
| 
 | 
 | ||||||
| The following is an example installation of `nvf` as a standalone package with | The following is an example installation of `nvf` as a standalone package with | ||||||
| the default theme enabled. You may use other options inside `config.vim` in | the default theme enabled. You may use other options inside `config.vim` in | ||||||
| `configModule`, but this example will not cover that. | `configModule`, but this example will not cover that extensively. | ||||||
| 
 | 
 | ||||||
| ```nix | ```nix | ||||||
| { | { | ||||||
|  | @ -30,21 +30,19 @@ the default theme enabled. You may use other options inside `config.vim` in | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     customNeovim = nvf.lib.neovimConfiguration { |     customNeovim = nvf.lib.neovimConfiguration { | ||||||
|       modules = [configModule]; |  | ||||||
|       inherit pkgs; |       inherit pkgs; | ||||||
|  |       modules = [configModule]; | ||||||
|     }; |     }; | ||||||
|   in { |   in { | ||||||
|     # this will make the package available as a flake input |     # This will make the package available as a flake output under 'packages' | ||||||
|     packages.${system}.my-neovim = customNeovim.neovim; |     packages.${system}.my-neovim = customNeovim.neovim; | ||||||
| 
 | 
 | ||||||
|     # this is an example nixosConfiguration using the built neovim package |     # Example nixosConfiguration using the configured Neovim package | ||||||
|     nixosConfigurations = { |     nixosConfigurations = { | ||||||
|       yourHostName = nixpkgs.lib.nixosSystem { |       yourHostName = nixpkgs.lib.nixosSystem { | ||||||
|         # ... |         # ... | ||||||
|         modules = [ |         modules = [ | ||||||
|           ./configuration.nix # or whatever your configuration is |           # This will make wrapped neovim available in your system packages | ||||||
| 
 |  | ||||||
|           # this will make wrapped neovim available in your system packages |  | ||||||
|           {environment.systemPackages = [customNeovim.neovim];} |           {environment.systemPackages = [customNeovim.neovim];} | ||||||
|         ]; |         ]; | ||||||
|         # ... |         # ... | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue