mirror of
				https://github.com/Jokiller230/puzzlevision.git
				synced 2025-10-31 13:50:04 +00:00 
			
		
		
		
	📝 (modules/flake) move comment
This commit is contained in:
		
							parent
							
								
									c322461fe1
								
							
						
					
					
						commit
						b559e046b7
					
				
					 1 changed files with 13 additions and 13 deletions
				
			
		|  | @ -5,7 +5,18 @@ | ||||||
|   ... |   ... | ||||||
| }: | }: | ||||||
| let | let | ||||||
|   # Recursive function to load all `default.nix` files and merge them into a single attr. set |   ## Recursive loading of libraries, similar to snowfall lib. | ||||||
|  |   ## Logical flow: read files => merge all file outputs to single attr. set | ||||||
|  |   ## The directory in question is flake-root => lib | ||||||
|  |   ## The directory structure is: | ||||||
|  |   ## lib/ | ||||||
|  |   ##   => libname | ||||||
|  |   ##     => default.nix | ||||||
|  |   ##   => libname2 | ||||||
|  |   ##     => default.nix | ||||||
|  |   ## | ||||||
|  |   ## The structure of multiple libs is simply for organization and the attrs. of all default.nix files should still be merged | ||||||
|  |   ## into a single set. | ||||||
|   loadLibs = directory: |   loadLibs = directory: | ||||||
|     builtins.foldl' (acc: name: |     builtins.foldl' (acc: name: | ||||||
|       let |       let | ||||||
|  | @ -25,18 +36,7 @@ in | ||||||
|   _module.args = { |   _module.args = { | ||||||
|     namespace = config.flake.namespace; |     namespace = config.flake.namespace; | ||||||
| 
 | 
 | ||||||
|     ## Recursive loading of libraries, similar to snowfall lib. | 
 | ||||||
|     ## Logical flow: read files => merge all file outputs to single attr. set |  | ||||||
|     ## The directory in question is flake-root => lib |  | ||||||
|     ## The directory structure is: |  | ||||||
|     ## lib/ |  | ||||||
|     ##   => libname |  | ||||||
|     ##     => default.nix |  | ||||||
|     ##   => libname2 |  | ||||||
|     ##     => default.nix |  | ||||||
|     ## |  | ||||||
|     ## The structure of multiple libs is simply for organization and the attrs. of all default.nix files should still be merged |  | ||||||
|     ## into a single set. |  | ||||||
|     puzzlelib = loadLibs ../../lib; |     puzzlelib = loadLibs ../../lib; | ||||||
| 
 | 
 | ||||||
|     # Initialize nixpkgs instance with custom overlays. |     # Initialize nixpkgs instance with custom overlays. | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue