Last active
March 27, 2025 09:00
-
-
Save drupol/97b75062ed2dc5a35138d56a2522d3ae to your computer and use it in GitHub Desktop.
flake.nix for Node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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