-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add flake for development reproducibility
- Loading branch information
1 parent
c54a408
commit a9aecb8
Showing
3 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
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; | ||
} | ||
); | ||
} |