feat: add nix flake

This commit is contained in:
Max Koon
2025-10-10 09:39:53 -04:00
parent 88ac6185c4
commit 0446893a67
4 changed files with 50 additions and 0 deletions

20
flake.nix Normal file
View File

@@ -0,0 +1,20 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs = {nixpkgs, ...}: let
forAllSystems = function:
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed
(system: function nixpkgs.legacyPackages.${system});
in {
formatter = forAllSystems (pkgs: pkgs.alejandra);
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
corepack
nodejs_22
];
};
});
};
}