forked from fabian/nix
		
	modules: automatically import all modules
This commit is contained in:
		
							parent
							
								
									8741b32021
								
							
						
					
					
						commit
						5d375d1d93
					
				
					 2 changed files with 4 additions and 6 deletions
				
			
		|  | @ -1,6 +1,6 @@ | |||
| {lib}: { | ||||
|   root, | ||||
|   exclude ? [], | ||||
|   exclude ? ["default"], | ||||
| }: | ||||
| with builtins; | ||||
| with lib; | ||||
|  | @ -10,7 +10,7 @@ with lib; | |||
| 
 | ||||
|     isMatch = name: type: | ||||
|       (hasSuffix ".nix" name || type == "directory") | ||||
|       && ! elem name (map basename exclude); | ||||
|       && ! elem (basename name) exclude; | ||||
| 
 | ||||
|     entry = name: _: { | ||||
|       name = basename name; | ||||
|  |  | |||
|  | @ -1,5 +1,3 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./sway | ||||
|   ]; | ||||
| {doctrine, ...}: { | ||||
|   imports = builtins.attrValues (doctrine.lib.importAll {root = ./.;}); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alejandro Soto
						Alejandro Soto