mirror of
				https://github.com/nmasur/dotfiles
				synced 2025-11-04 01:13:15 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			577 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			577 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, colorscheme, ... }:
 | 
						|
 | 
						|
{
 | 
						|
 | 
						|
  options.theme = {
 | 
						|
    name = lib.mkOption {
 | 
						|
      type = lib.types.nullOr lib.types.str;
 | 
						|
      description = "Color palette name (fallback when individual colors aren't specified)";
 | 
						|
      default = "gruvbox";
 | 
						|
    };
 | 
						|
    colors = lib.mkOption {
 | 
						|
      type = lib.types.attrs;
 | 
						|
      description = "Base16 color scheme.";
 | 
						|
      default = colorscheme.gruvbox.dark;
 | 
						|
    };
 | 
						|
    mode = lib.mkOption {
 | 
						|
      type = lib.types.enum [
 | 
						|
        "light"
 | 
						|
        "dark"
 | 
						|
      ];
 | 
						|
      description = "Light or dark mode";
 | 
						|
      default = "dark";
 | 
						|
    };
 | 
						|
  };
 | 
						|
 | 
						|
}
 |