userscripts/flake.nix
2025-11-17 18:04:55 +00:00

32 lines
631 B
Nix

{
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
'';
};
}
);
}