{ description = "template for devShell"; 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 = import nixpkgs {inherit system;}; in { # 定义默认的 devShell devShells.default = pkgs.mkShell { packages = with pkgs; [ nodejs_24 typescript-language-server ]; shellHook = '' node --version ''; }; } ); }