create svg of dependency tree with nixsize

This commit is contained in:
Christoph Hollizeck 2024-03-27 14:27:19 +01:00
parent 03deac14c9
commit 3397f7ea85
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

View file

@ -12,6 +12,7 @@ with lib.wyrdgard; {
virtualisation.hypervGuest.videoMode = "1920x1080";
environment.systemPackages = with pkgs; [
];
environment.variables.EDITOR = "nvim";