what is it?
fast, declarative, reproducible and composable developer environments using nix
installation
non-nixos
nix profile install --accept-flake-config nixpkgs#devenvnixos
add to configuration.nix
environment.systemPackages = [
pkgs.devenv
];project initialisation
if not done already, add user to trusted-users. for non-nixos, edit /etc/nix/nix.conf
echo "trusted-users = root ${USER}" | sudo tee -a /etc/nix/nix.conf && sudo pkill nix-daemoncd into project, and initialise the devenv shell
nix flake init --template github:cachix/devenvto update a flake template already in the nix store
nix flake init --template github:cachix/devenv --refreshif direnv is installed, you might have to stop the process, as devenv needs all files to be tracked first in the repo, other wise it seems like it installs more packages?
# allow git to track the devenv artifacts
git add .