mirror of
				https://github.com/Jokiller230/puzzlevision.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	feat(module): add common hardware/peripherals module
refactor(module): move audio configuration to module
This commit is contained in:
		
							parent
							
								
									77c95c1140
								
							
						
					
					
						commit
						078657f1e2
					
				
					 7 changed files with 52 additions and 68 deletions
				
			
		
							
								
								
									
										37
									
								
								modules/nixos/common/fonts/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								modules/nixos/common/fonts/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,37 @@
 | 
			
		|||
{
 | 
			
		||||
  lib,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  namespace,
 | 
			
		||||
  config,
 | 
			
		||||
  options,
 | 
			
		||||
  ...
 | 
			
		||||
}: with lib; with lib.${namespace};
 | 
			
		||||
let
 | 
			
		||||
  cfg = config.${namespace}.system.fonts;
 | 
			
		||||
in {
 | 
			
		||||
  options.${namespace}.system.fonts = {
 | 
			
		||||
    enable = mkEnableOption "Enable system font management";
 | 
			
		||||
    fonts = mkOption {
 | 
			
		||||
      type = types.package;
 | 
			
		||||
      default = [ ];
 | 
			
		||||
      example = [ noto-fonts noto-fonts-emoji ];
 | 
			
		||||
      description = "Install additional font packages";
 | 
			
		||||
    }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
    environment.variables = {
 | 
			
		||||
      LOG_ICONS = "true"; # Enable icons in tooling (requires nerdfonts)
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    environment.systemPackages = with pkgs; [ font-manager ];
 | 
			
		||||
 | 
			
		||||
    fonts.packages = with pkgs; [
 | 
			
		||||
      noto-fonts
 | 
			
		||||
      noto-fonts-cjk-sans
 | 
			
		||||
      noto-fonts-cjk-serif
 | 
			
		||||
      noto-fonts-emoji
 | 
			
		||||
      (nerdfonts.override { fonts = [ "Hack" ]; })
 | 
			
		||||
    ] ++ cfg.fonts;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue