diff --git a/modules/home/apps/graphviz/default.nix b/modules/home/apps/graphviz/default.nix new file mode 100644 index 0000000..ead61d7 --- /dev/null +++ b/modules/home/apps/graphviz/default.nix @@ -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"; + }; + }; +} diff --git a/modules/nixos/nix/default.nix b/modules/nixos/nix/default.nix index 483e7d2..a320b45 100644 --- a/modules/nixos/nix/default.nix +++ b/modules/nixos/nix/default.nix @@ -41,6 +41,7 @@ in { snowfallorg.flake nixfmt nix-prefetch-git + nix-du ]; nix = let diff --git a/systems/x86_64-linux/workvm/default.nix b/systems/x86_64-linux/workvm/default.nix index 01d1dd4..bc87166 100644 --- a/systems/x86_64-linux/workvm/default.nix +++ b/systems/x86_64-linux/workvm/default.nix @@ -12,6 +12,7 @@ with lib.wyrdgard; { virtualisation.hypervGuest.videoMode = "1920x1080"; environment.systemPackages = with pkgs; [ + ]; environment.variables.EDITOR = "nvim";