feat: rework to modular
This commit is contained in:
19
shells/node.nix
Normal file
19
shells/node.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
extraPackages ? [ ],
|
||||
inputsFrom ? [ ],
|
||||
shellHook ? "",
|
||||
}:
|
||||
let
|
||||
nodejs = lib.attrByPath [ "nodejs_20" ] pkgs.nodejs pkgs;
|
||||
in
|
||||
pkgs.mkShell {
|
||||
inherit inputsFrom shellHook;
|
||||
|
||||
packages = [
|
||||
nodejs
|
||||
pkgs.pnpm
|
||||
]
|
||||
++ extraPackages;
|
||||
}
|
||||
Reference in New Issue
Block a user