Skip to content

Instantly share code, notes, and snippets.

@drupol
Last active March 27, 2025 09:00
Show Gist options
  • Save drupol/97b75062ed2dc5a35138d56a2522d3ae to your computer and use it in GitHub Desktop.
Save drupol/97b75062ed2dc5a35138d56a2522d3ae to your computer and use it in GitHub Desktop.
flake.nix for Node
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ ... }:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
perSystem = { pkgs, ... }: {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
nodejs_20
];
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment