create svg of dependency tree with nixsize
This commit is contained in:
parent
03deac14c9
commit
3397f7ea85
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
|
||||
nixfmt
|
||||
nix-prefetch-git
|
||||
nix-du
|
||||
];
|
||||
|
||||
nix = let
|
||||
|
|
|
@ -12,6 +12,7 @@ with lib.wyrdgard; {
|
|||
virtualisation.hypervGuest.videoMode = "1920x1080";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
];
|
||||
|
||||
environment.variables.EDITOR = "nvim";
|
||||
|
|
Loading…
Reference in a new issue