refactor(home): homeModules -> ooknet
This commit is contained in:
		
							parent
							
								
									b81c929a0b
								
							
						
					
					
						commit
						1d1cb3092f
					
				
					 104 changed files with 214 additions and 255 deletions
				
			
		|  | @ -3,10 +3,10 @@ let | |||
|   inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) nixWallpaperFromScheme; | ||||
|   inherit (lib) types mkDefault mkIf mkOption mkEnableOption; | ||||
| 
 | ||||
|   cfg = config.homeModules.theme.wallpaper; | ||||
|   cfg = config.ooknet.theme.wallpaper; | ||||
| in | ||||
| { | ||||
|   options.homeModules.theme.wallpaper = { | ||||
|   options.ooknet.theme.wallpaper = { | ||||
|     enable = mkEnableOption "Enable wallpaper module"; | ||||
|     path = mkOption { | ||||
|       type = types.path; | ||||
|  | @ -16,7 +16,7 @@ in | |||
|   }; | ||||
| 
 | ||||
|   config = mkIf cfg.enable { | ||||
|     homeModules.theme.wallpaper.path = | ||||
|     ooknet.theme.wallpaper.path = | ||||
|       let | ||||
|         largest = f: xs: builtins.head (builtins.sort (a: b: a > b) (map f xs)); | ||||
|         largestWidth = largest (x: x.width) config.monitors; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue