This directory contains files for systems using the nix
package manager. It
can be used to enter a devshell
,
similar to a python virtual environment, that has all required dependencies
installed, just locally in this project's directory.
- Install the
nix
package manager https://nixos.org/download.html. - Enable the nix flakes experimental feature.
mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
- Run the following to enter the
devshell
with all required dependencies installed.
nix develop --impure ./nix
To automatically enter devshell
when changing to this directory, install
direnv
globally and run:
direnv allow