forketyfork_obsidian-food-t.../flake.nix
Forketyfork 8861989be8
Align Node.js version to 24.x across all environments
- Update flake.nix to use nodejs_24 instead of nodejs_20
- Update GitHub Actions workflows to use Node.js 24.x instead of 18.x
- Ensures consistent Node.js version between local dev and CI environments
2025-09-23 10:29:51 +02:00

52 lines
No EOL
1.4 KiB
Nix

{
description = "Obsidian Food Tracker plugin development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
# Node.js and package manager
nodejs_24
yarn
# Development tools
just
typescript
# Build tools
esbuild
# Optional tools
git
];
shellHook = ''
echo "🚀 Obsidian Food Tracker development environment"
echo "📦 Node.js $(node --version)"
echo "🧶 Yarn $(yarn --version)"
echo " TypeScript $(tsc --version)"
echo ""
echo "Available commands:"
echo " just clean - Clean build artifacts"
echo " just build - Full production build"
echo " just test - Run tests"
echo " just lint - Run linter"
echo ""
echo "Run 'just --list' for all available commands"
'';
};
# Optional: Add formatter for nix files
formatter = pkgs.nixpkgs-fmt;
}
);
}