Add nix flake with devshell and package #324
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
re accentor/flake#5
This PR:
Might be good if this can be tried on different machines and OS's (I only have aarch64-darwin).
Details
The devshell can be used with
nix develop
oruse flake
inside an.envrc
-file.It will print out a message with some of the additional commands:
If we want to, we can customize this message.
The
pg:*
commands allow us to keep the database fully contained within the project folder. Runningpg:start
should be plenty to setup and run a database intmp/postgres
. (I adopted this approach so I can easily switch between major versions of postgres accross different projects).Github action
@chvp For this action to work after dependabot (and trigger actions), you might have to add a PAT for dependabot to use. source