diff --git a/docs/.envrc b/docs/.envrc new file mode 100644 index 0000000000..1c96592380 --- /dev/null +++ b/docs/.envrc @@ -0,0 +1 @@ +use flake ..#docs diff --git a/flake.nix b/flake.nix index cc949a0fe8..725c39a460 100644 --- a/flake.nix +++ b/flake.nix @@ -28,13 +28,20 @@ treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix; in { - devShells.default = pkgs.mkShell { - packages = with pkgs; [ - go - golangci-lint - just - ]; - shellHook = ''alias make=just''; + devShells = { + default = pkgs.mkShell { + packages = with pkgs; [ + go + golangci-lint + just + ]; + shellHook = ''alias make=just''; + }; + docs = pkgs.mkShell { + packages = with pkgs; [ + nodejs-18_x + ]; + }; }; formatter = treefmtEval.config.build.wrapper;