portfolio/flake.nix
2024-05-28 23:11:13 +02:00

31 lines
660 B
Nix

{
description = "TS environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
# Helper to provide system-specific attributes
forAllSupportedSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
supportedSystems = [
"x86_64-linux"
];
in
{
devShells = forAllSupportedSystems ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
typescript
nodejs_21
nodePackages_latest.pnpm
];
};
});
};
}