Move from venv to Nix

This commit is contained in:
2025-10-12 10:15:17 +00:00
parent 455633bf19
commit e6f4781afa
4 changed files with 95 additions and 3 deletions
+34
View File
@@ -0,0 +1,34 @@
{
description = "esphome deployment shell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
esphome
];
shellHook = ''
echo -n "ESPHome "
esphome --version
exec zsh
'';
};
}
);
}