Add Nix flakes support through direnv

* Nix (https://nixos.org) is a reproducible build system.
* Enables Nix users to use/develop Auto-GPT, without installing PIP or any other future Auto-GPT dependency.
This commit is contained in:
superherointj
2023-04-12 15:48:46 -03:00
committed by Pi
parent 10cd0f3362
commit d47466ddf9
2 changed files with 5 additions and 0 deletions

4
.envrc Normal file
View File

@@ -0,0 +1,4 @@
# Upon entering directory, direnv requests user permission once to automatically load project dependencies onwards.
# Eliminating the need of running "nix develop github:superherointj/nix-auto-gpt" for Nix users to develop/use Auto-GPT.
[[ -z $IN_NIX_SHELL ]] && use flake github:superherointj/nix-auto-gpt

1
.gitignore vendored
View File

@@ -127,6 +127,7 @@ celerybeat.pid
*.sage.py
# Environments
.direnv/
.env
.venv
env/