create svg of dependency tree with nixsize

This commit is contained in:
Christoph Hollizeck 2024-03-27 14:27:19 +01:00
parent fc257cfb03
commit 9ee92c5a0d
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
3 changed files with 26 additions and 0 deletions

View 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";
};
};
}

View file

@ -41,6 +41,7 @@ in {
snowfallorg.flake
nixfmt
nix-prefetch-git
nix-du
];
nix = let