Files
ad-nix/README.md
John Lancaster 30fcca3624 more notes
2024-12-29 00:11:51 -06:00

36 lines
931 B
Markdown

# NixOS Configuration for AppDaemon Development
## Objectives
- Use flakes
- `devenv`-based workflow
- Shell
- Build
- SSH remote with VSCode
- Jupyter through VSCode
- `autoreload` must work with editable install of the dev version
- Multiple dev versions
- Multiple config directories
- Debugger must work
## Usage
### `nfs`
Used to rebuild the ad-nix system.
### `ads`
Used to enter the development shell. Be careful, as this will create a `.devenv` directory and venv wherever it's entered.
### venv
Activated with `.devenv/state/venv/bin/activate`. Used in VSCode for type hints, running, and debugging
### Jupyter
- Install devenv kernel - might not be useful
- `python -m ipykernel install --user --name devenv --display-name "Python (devenv)"`
- Run jupyter notebook on the side with a `uv run jupyter notebook` command
- Use the link with the token to connect the jupyter notebook kernel to it