Create a Nix flake and setup Direnv

This commit is contained in:
Nettika 2026-01-28 21:45:39 -08:00
parent 70af2d9ae8
commit 89bd003480
No known key found for this signature in database
7 changed files with 231 additions and 132 deletions

39
flake.nix Normal file
View file

@ -0,0 +1,39 @@
{
description = "MatterControl Web Port - Vue + TypeScript + three.js";
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 LTS and pnpm
nodejs_22
pnpm
# Useful development tools
just
];
shellHook = ''
echo "Developer Environment"
echo "Node.js: $(node --version)"
echo "pnpm: $(pnpm --version)"
'';
};
}
);
}