John Lancaster a8c4b75eb1 pruned
2024-12-29 13:31:55 -06:00
2024-12-29 13:31:48 -06:00
2024-12-18 00:52:36 -06:00
2024-12-29 10:16:04 -06:00
2024-12-18 00:52:36 -06:00
2024-12-18 00:52:36 -06:00
2024-12-29 10:16:11 -06:00
2024-12-29 13:31:55 -06:00
2024-12-18 00:52:36 -06:00
2024-12-29 13:30:30 -06:00
2024-12-04 22:03:18 -06:00

NixOS Configuration for AppDaemon Development

Objectives

  • Use flakes
  • devenv-based workflow
    • Shell
      • Makes uv available
      • Syncs devenv virtual environment
      • appdaemon
    • Build Docker
  • 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 with whatever is currently symlinked to /etc/nixos

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
Description
No description provided
Readme 427 KiB
Languages
Nix 98.1%
Shell 1.9%