Skip to content

Commit

Permalink
Merge pull request #261 from himkt/nix-template-node-pnpm
Browse files Browse the repository at this point in the history
feat(nix): template for frontend development
  • Loading branch information
himkt authored Dec 5, 2024
2 parents 648e3f1 + 8b799ac commit e80e703
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
61 changes: 61 additions & 0 deletions nix/template.d/devenv-pnpm/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions nix/template.d/devenv-pnpm/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};

outputs = inputs:
inputs.flake-utils.lib.eachDefaultSystem (system:
let
pkgs = (import (inputs.nixpkgs) { inherit system; });
in {
devShell = pkgs.mkShell {
buildInputs=[
pkgs.nodejs_22
pkgs.nodePackages.pnpm
];
shellHook = ''
export SHELL=$(which zsh)
exec $SHELL
'';
};
}
);
}

0 comments on commit e80e703

Please sign in to comment.