From e923afed4a8932c833183d65707f46f4287264cf Mon Sep 17 00:00:00 2001 From: rainy Date: Tue, 29 Apr 2025 15:10:49 -0700 Subject: [PATCH] nix flake --- flake.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..d36421c --- /dev/null +++ b/flake.nix @@ -0,0 +1,21 @@ +{ + description = "Bun 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 = import nixpkgs { inherit system; }; + in { + devShells.default = pkgs.mkShell { + packages = with pkgs; [ + bun + nodejs + ]; + }; + }); +}