create svg of dependency tree with nixsize
This commit is contained in:
		
							parent
							
								
									fc257cfb03
								
							
						
					
					
						commit
						9ee92c5a0d
					
				
					 3 changed files with 26 additions and 0 deletions
				
			
		
							
								
								
									
										24
									
								
								modules/home/apps/graphviz/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								modules/home/apps/graphviz/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,24 @@ | ||||||
|  | { | ||||||
|  |   lib, | ||||||
|  |   config, | ||||||
|  |   pkgs, | ||||||
|  |   ... | ||||||
|  | }: | ||||||
|  | with lib; | ||||||
|  | with lib.wyrdgard; let | ||||||
|  |   cfg = config.wyrdgard.apps.graphviz; | ||||||
|  | in { | ||||||
|  |   options.wyrdgard.apps.graphviz = { | ||||||
|  |     enable = mkBoolOpt true "Whether or not you want to install graphviz"; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|  |   config = mkIf cfg.enable { | ||||||
|  |     home.packages = with pkgs; [ | ||||||
|  |       graphviz | ||||||
|  |     ]; | ||||||
|  | 
 | ||||||
|  |     home.shellAliases = { | ||||||
|  |       nixsize = "nix-du -n=50 | dot -Tsvg > ~/Pictures/store.svg"; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
|  | } | ||||||
|  | @ -41,6 +41,7 @@ in { | ||||||
|       snowfallorg.flake |       snowfallorg.flake | ||||||
|       nixfmt |       nixfmt | ||||||
|       nix-prefetch-git |       nix-prefetch-git | ||||||
|  |       nix-du | ||||||
|     ]; |     ]; | ||||||
| 
 | 
 | ||||||
|     nix = let |     nix = let | ||||||
|  |  | ||||||
|  | @ -12,6 +12,7 @@ with lib.wyrdgard; { | ||||||
|   virtualisation.hypervGuest.videoMode = "1920x1080"; |   virtualisation.hypervGuest.videoMode = "1920x1080"; | ||||||
| 
 | 
 | ||||||
|   environment.systemPackages = with pkgs; [ |   environment.systemPackages = with pkgs; [ | ||||||
|  | 
 | ||||||
|   ]; |   ]; | ||||||
| 
 | 
 | ||||||
|   environment.variables.EDITOR = "nvim"; |   environment.variables.EDITOR = "nvim"; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue