Skip to content

Instantly share code, notes, and snippets.

@stelcodes
Created November 8, 2024 22:49
Show Gist options
  • Save stelcodes/4f6b5395ac8c0a20853df87403df1dad to your computer and use it in GitHub Desktop.
Save stelcodes/4f6b5395ac8c0a20853df87403df1dad to your computer and use it in GitHub Desktop.
Basic Node/ PNPM Nix flake
{
description = "Basic Node/ PNPM Nix flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs:
inputs.flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import inputs.nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
packages = [
pkgs.nodejs_22
pkgs.pnpm
];
shellHook = ''
echo 'Entering Nix dev shell...'
'';
};
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment