Skip to content

Instantly share code, notes, and snippets.

@netlooker
Forked from drupol/flake.nix
Created March 27, 2025 08:58
Show Gist options
  • Save netlooker/edd192e268b266b60f9a5760b28acd63 to your computer and use it in GitHub Desktop.
Save netlooker/edd192e268b266b60f9a5760b28acd63 to your computer and use it in GitHub Desktop.
flake.nix for Node
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = inputs@{ flake-parts, ... }:
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