mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
| .. | ||
| src/name | ||
| tests | ||
| .envrc | ||
| .gitignore | ||
| flake.nix | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Python template using uv2nix
This template flake provides a python environment that is being managed by uv while still keeping the store managed by nix.
Setup
- Enter project directory
project python- Edit Python version in
flake.nixand Python version + dependencies inpyproject.toml uv lockdirenv reload
Usage
Testing
- run
nix flake check
Note for Emacs users
It can happen that Emacs will not immediately pick up on the new environment after you have made your changes. In that case, perform the following steps in Emacs (this is for a setup using envrc.el and eglot):
(envrc-reload)(eglot)