feat(nix): add dev environment

This commit is contained in:
RhenCloud 2026-07-24 23:42:12 +08:00
parent 512d4b01d5
commit 114776d5af
No known key found for this signature in database
GPG key ID: A574A617378C4E0B
4 changed files with 96 additions and 0 deletions

28
flake.nix Normal file
View file

@ -0,0 +1,28 @@
{
description = "Cloudflare Worker GitHub webhook Discord Gateway";
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 {
buildInputs = with pkgs; [
bun
nodejs_22
biome
nixfmt
];
shellHook = ''
echo "WebHooker devShell "
'';
};
formatter = nixpkgs.legacyPackages.${system}.nixfmt;
});
}