mirror of
				https://github.com/Jokiller230/puzzlevision.git
				synced 2025-10-31 13:50:04 +00:00 
			
		
		
		
	✨ (modules/flake) improve library loading and implement system class module mappings
This commit is contained in:
		
							parent
							
								
									7d16e19c8b
								
							
						
					
					
						commit
						f139b88c0b
					
				
					 9 changed files with 144 additions and 73 deletions
				
			
		|  | @ -3,14 +3,14 @@ | |||
|   ... | ||||
| }: | ||||
| { | ||||
|   ## Create a NixOS module option as a one-liner. | ||||
|   ## | ||||
|   ## ```nix | ||||
|   ## lib.mkOpt nixpkgs.lib.types.str "My default" "Option description" | ||||
|   ## ``` | ||||
|   ## | ||||
|   #@ Type -> Any -> String | ||||
|   # Create a NixOS module option on a single line. | ||||
|   mkOpt = | ||||
|     type: default: description: | ||||
|     lib.mkOption { inherit type default description; }; | ||||
| 
 | ||||
|   mkBool = | ||||
|     default: description: | ||||
|       lib.mkOption { inherit default description; type = lib.types.bool; }; | ||||
| 
 | ||||
|   # Todo: add mkIfElse function | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue