portfolio/flake.nix

32 lines
660 B
Nix
Raw Permalink Normal View History

2024-05-28 21:11:13 +00:00
{
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
];
};
});
};
}