Skip to content

Commit b77bae5

Browse files
committed
chore(dev): Add Nix Flake config
1 parent 28882dc commit b77bae5

3 files changed

Lines changed: 83 additions & 0 deletions

File tree

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
4+
flake-utils.url = "github:numtide/flake-utils";
5+
};
6+
7+
outputs = { self, nixpkgs, flake-utils, ... }:
8+
flake-utils.lib.eachDefaultSystem (system:
9+
let
10+
pkgs = nixpkgs.legacyPackages.${system};
11+
in
12+
with pkgs; {
13+
devShell = mkShell {
14+
packages = [
15+
nodejs_20
16+
yarn
17+
];
18+
};
19+
}
20+
);
21+
}

0 commit comments

Comments
 (0)