From 404ce85430756e9e2fabff5f1b8999a201a2b7e8 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 16 Sep 2024 04:00:00 +0000 Subject: [PATCH] added uv sync to shell hook --- configuration.nix | 2 +- shell.nix | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 5b81681..03ea191 100644 --- a/configuration.nix +++ b/configuration.nix @@ -68,7 +68,7 @@ in ssh.enable = true; bash = { enable = true; - profileExtra = "cd ${adPath}"; + profileExtra = "cd ${adNixPath}"; }; }; }; diff --git a/shell.nix b/shell.nix index 3d27f35..43391f0 100644 --- a/shell.nix +++ b/shell.nix @@ -6,7 +6,7 @@ pkgs.mkShell { unstable.uv unstable.python312Packages.ipykernel unstable.python312Packages.rich - pkgs.python312Packages.iso8601 + # pkgs.python312Packages.iso8601 # unstable.appdaemon ]; @@ -16,6 +16,9 @@ pkgs.mkShell { alias dbuild="docker build -t acockburn/appdaemon:local-dev /usr/src/app" alias fbuild="build && dbuild" alias clean="cd /usr/src/app && rm -rf ./build ./dist" + alias python="/usr/src/app/.venv/bin/python3" + alias ad="python -m appdaemon" cd /usr/src/app + uv sync --all-extras --upgrade --inexact ''; }