Skip to content

Commit

Permalink
Update nix dev setup
Browse files Browse the repository at this point in the history
  • Loading branch information
eikek committed Jan 17, 2025
1 parent d69ba31 commit 099e47e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 224 deletions.
6 changes: 1 addition & 5 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,14 @@ environment can be created:
environment.
2. In another terminal, run `vm-run` (headless) to start a vm running
necessary external services, like the PostgreSQL database.
3. Potentially run `poetry-fix-cfg` to alter the `pyvenv.cfg` so that
poetry will use the env built by nix
3. Run `poetry install` to install the python venv

Then `make run`, `make tests` etc can be used as usual.

The environment also contains other useful tools, like ruff-lsp,
pyright and more. Instead of a vm, a development environment using
NixOS containers is also available.

The first invocation will take a while for the first run, as the
python environment is being built. Subsequent calls are then instant.

It will run a bash shell, check out [direnv](https://direnv.net/) and
the [use flake](https://direnv.net/man/direnv-stdlib.1.html#codeuse-flake-ltinstallablegtcode)
function if you prefer to keep your favorite shell.
Expand Down
161 changes: 25 additions & 136 deletions flake.lock

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

Loading

0 comments on commit 099e47e

Please sign in to comment.