refactor: major theme refactor
new profile catagory: theme. refactor modules for wallpaper, fonts, gtk, and qt. adjusted modules that depend on old theming modules
This commit is contained in:
		
							parent
							
								
									7d910ba77c
								
							
						
					
					
						commit
						f5e87f2a79
					
				
					 34 changed files with 217 additions and 118 deletions
				
			
		
							
								
								
									
										27
									
								
								home/profile/themes/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								home/profile/themes/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,27 @@ | |||
| { lib, config, ... }: | ||||
| 
 | ||||
| # let | ||||
| #   cfg = config.theme; | ||||
| # in | ||||
| 
 | ||||
| { | ||||
|   imports = [ | ||||
|     ./minimal | ||||
|   ]; | ||||
| 
 | ||||
|   options.theme = { | ||||
|     minimal.enable = lib.mkEnableOption "enable minimal theme"; | ||||
|   }; | ||||
| 
 | ||||
|   # config = { | ||||
|   #   assertions = [ | ||||
|   #     { | ||||
|   #       assertion =  | ||||
|   #       (lib.length (lib.filter (x: x) [ | ||||
|   #         cfg.minimal or false | ||||
|   #         cfg.OTHERTHEMEHERE or false | ||||
|   #       ]) <= 1); | ||||
|   #     } | ||||
|   #   ]; | ||||
|   # }; | ||||
| } | ||||
							
								
								
									
										42
									
								
								home/profile/themes/minimal/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								home/profile/themes/minimal/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,42 @@ | |||
| { lib, config, pkgs, inputs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.theme.minimal; | ||||
|   inherit (inputs.nix-colors) colorSchemes; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   imports = [ inputs.nix-colors.homeManagerModule ]; | ||||
|   config = lib.mkIf cfg.enable { | ||||
| 
 | ||||
|     colorscheme = colorSchemes.gruvbox-material-dark-soft; | ||||
|     home.file.".colorscheme".text = config.colorscheme.slug; | ||||
|     home.sessionVariables.COLOR_SCHEME = "${config.colorscheme.slug}"; | ||||
| 
 | ||||
|     homeModules.theme = { | ||||
|       fonts.enable = true; | ||||
|       fonts.regular = { | ||||
|         family = "Fira Sans"; | ||||
|         package = pkgs.fira; | ||||
|       }; | ||||
|       fonts.monospace = { | ||||
|         family = "JetBrainsMono Nerd Font"; | ||||
|         package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; }; | ||||
|       }; | ||||
| 
 | ||||
|       cursor.enable = true; | ||||
|       cursor = { | ||||
|         name = "Bibata-Modern-Ice"; | ||||
|         package = pkgs.bibata-cursors; | ||||
|         size = 22; | ||||
|       }; | ||||
| 
 | ||||
|       wallpaper = { | ||||
|         enable = true; | ||||
|       }; | ||||
|      | ||||
|       gtk.enable = true; | ||||
|       qt.enable = true; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue