diff --git a/shells/default.nix b/shells/default.nix index a4317d52..3ade4803 100644 --- a/shells/default.nix +++ b/shells/default.nix @@ -4,6 +4,7 @@ with pkgs; { flatpak = callPackage ./flatpak.nix { }; gnu = callPackage ./gnu.nix { }; gnome = callPackage ./gnome.nix { }; + nix = callPackage ./nix.nix { }; hugo = callPackage ./hugo.nix { }; rust = callPackage ./rust.nix { }; tic-80 = callPackage ./tic-80.nix { }; diff --git a/shells/nix.nix b/shells/nix.nix index d735deb6..ee049fe2 100644 --- a/shells/nix.nix +++ b/shells/nix.nix @@ -1,8 +1,13 @@ -{ mkShell, lib, nixfmt, rnix-lsp }: +# For usual Nix projects such as overlays, package repositories, and whatnot. +# Also, it's fun to have a file named `nix.nix`. +{ mkShell, lib, nixfmt, jq, rnix-lsp, rnix-hashes, nix-tree }: mkShell { packages = [ - nixfmt - rnix-lsp + jq # It will use some JSON with its lockfile so better be ready to use this. + nixfmt # Ideally, it would be nicer if the codebase has their preferred formatter but we'll go with the most common formatter(?). + rnix-hashes # Quick utility for converting hashes. + rnix-lsp # Make your editing experience nicer with a nice language server. + nix-tree # Suprisingly nice exploration tool for your packages in the store directory. ]; }