From 881d015674d45ccd9de46813ce3a039bda5400ad Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 1 Sep 2022 09:56:57 +0800 Subject: [PATCH] shells/nix: init devshell Though, it has been added by accident (whoops). It's for real this time. :) --- shells/default.nix | 1 + shells/nix.nix | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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. ]; }