| 
									
										
										
										
											2025-04-23 14:19:05 +01:00
										 |  |  | { | 
					
						
							|  |  |  |   config, | 
					
						
							|  |  |  |   lib, | 
					
						
							|  |  |  |   pkgs, | 
					
						
							|  |  |  |   ... | 
					
						
							|  |  |  | }: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | with lib; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | let | 
					
						
							| 
									
										
										
										
											2025-05-03 16:50:27 +01:00
										 |  |  |   cfg = config.desktop.fonts; | 
					
						
							| 
									
										
										
										
											2025-04-23 14:19:05 +01:00
										 |  |  | in | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2025-05-03 16:50:27 +01:00
										 |  |  |   options.desktop.fonts.enable = mkEnableOption "Enable fonts"; | 
					
						
							| 
									
										
										
										
											2025-04-23 14:19:05 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |   config = mkIf cfg.enable { | 
					
						
							|  |  |  |     fonts = { | 
					
						
							|  |  |  |       fontconfig = { | 
					
						
							|  |  |  |         enable = true; | 
					
						
							|  |  |  |       }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       packages = with pkgs; [ | 
					
						
							|  |  |  |         nerd-fonts.jetbrains-mono | 
					
						
							|  |  |  |         nerd-fonts.meslo-lg | 
					
						
							|  |  |  |         terminus_font | 
					
						
							|  |  |  |         terminus_font_ttf | 
					
						
							|  |  |  |       ]; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | } |