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}: { | {lib}: { | ||||||
|   root, |   root, | ||||||
|   exclude ? [], |   exclude ? ["default"], | ||||||
| }: | }: | ||||||
| with builtins; | with builtins; | ||||||
| with lib; | with lib; | ||||||
|  | @ -10,7 +10,7 @@ with lib; | ||||||
| 
 | 
 | ||||||
|     isMatch = name: type: |     isMatch = name: type: | ||||||
|       (hasSuffix ".nix" name || type == "directory") |       (hasSuffix ".nix" name || type == "directory") | ||||||
|       && ! elem name (map basename exclude); |       && ! elem (basename name) exclude; | ||||||
| 
 | 
 | ||||||
|     entry = name: _: { |     entry = name: _: { | ||||||
|       name = basename name; |       name = basename name; | ||||||
|  |  | ||||||
|  | @ -1,5 +1,3 @@ | ||||||
| { | {doctrine, ...}: { | ||||||
|   imports = [ |   imports = builtins.attrValues (doctrine.lib.importAll {root = ./.;}); | ||||||
|     ./sway |  | ||||||
|   ]; |  | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alejandro Soto
						Alejandro Soto