updated default.nix shell for nextjs

This commit is contained in:
2025-02-10 12:42:19 -06:00
parent 769e99d4c3
commit c9eb6480da
3 changed files with 4554 additions and 14 deletions
+13 -11
View File
@@ -1,15 +1,17 @@
{ pkgs ? import <nixpkgs> {} }:
let
nodePackages = pkgs.nodePackages;
pkgs = import <nixpkgs> {};
in
pkgs.mkShell {
buildInputs = [
nodePackages.nodejs
nodePackages.yarn
];
shellHook = ''
echo "Welcome to the bakery-template development environment!"
'';
pkgs.mkShell {
buildInputs = [
pkgs.nodejs
pkgs.yarn
];
# Install Next.js via yarn in the shell
shellHook = ''
if ! [ -d "node_modules" ]; then
yarn add next react react-dom
fi
'';
}