wip(home): refactor home modules *WILL NOT BUILD*
This commit is contained in:
		
							parent
							
								
									2033810429
								
							
						
					
					
						commit
						6a591ecbf7
					
				
					 115 changed files with 1028 additions and 791 deletions
				
			
		
							
								
								
									
										42
									
								
								home/profiles/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								home/profiles/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,42 @@ | |||
| { lib, config, ... }: | ||||
| 
 | ||||
| let | ||||
|   profileEnabler = let | ||||
|     reducer = l: r: {"${r}".enable = true;} // l; | ||||
|   in | ||||
|     builtins.foldl' reducer {} config.activeProfiles; | ||||
| in | ||||
| { | ||||
|   imports = [ | ||||
|     ./base | ||||
|     ./hyprland | ||||
|     #./creative | ||||
|     ./productivity | ||||
|     ./gaming | ||||
|     ./themes | ||||
|   ]; | ||||
| 
 | ||||
|   options = { | ||||
|     activeProfiles = lib.mkOption { | ||||
|       type = lib.types.listOf lib.types.str; | ||||
|       default = []; | ||||
|     }; | ||||
|      | ||||
|     profiles = { | ||||
|       base = { | ||||
|         enable = lib.mkEnableOption "Enable the base profile"; | ||||
|       }; | ||||
|       hyprland = { | ||||
|         enable = lib.mkEnableOption "Enable the hyprland profile"; | ||||
|       }; | ||||
|       gaming = { | ||||
|         enable = lib.mkEnableOption "Enable the gaming profile"; | ||||
|       }; | ||||
|       productivity = { | ||||
|         enable = lib.mkEnableOption "Enable the productivity profile"; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
|    | ||||
|   config.profiles = profileEnabler; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue