Skip to content

Commit

Permalink
chore: add flake for development reproducibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tembleking committed Jul 29, 2024
1 parent c54a408 commit a9aecb8
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
has nix && use flake
dotenv_if_exists .env # You can create a .env file with your env vars for this project. You can also use .secrets if you are using act. See the line below.
dotenv_if_exists .secrets # Used by [act](https://nektosact.com/) to load secrets into the pipelines

export GITHUB_STEP_SUMMARY=/tmp/github_summary.html
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
utils,
}:
utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
devShells.default = with pkgs;
mkShell {
buildInputs =
[
typescript
nodejs_20
]
++ (with nodePackages; [
typescript-language-server
eslint
]);
};

formatter = pkgs.alejandra;
}
);
}

0 comments on commit a9aecb8

Please sign in to comment.