···11# Setup steps for new project
2233Make a .ruby-version file with your chosen ruby version. Create a Gemfile with your gems. Run the following commands to make a lockfile.
44-44+```bash
55nix flake init --template github:bobvanderlinden/nixpkgs-ruby#
66nix develop
77bundle lock
88bundix
99-99+```
1010Now you can add gems to the buildInputs and enable direnv. Reload the environment and you are ready to work with your chosen version of Ruby and associated Gems.
1111-1111+```bash
1212direnv allow <foldername>
1313-1313+```
1414Credit to Bob van der Linden <bobvanderlinden@gmail.com> for creating https://github.com/bobvanderlinden/nixpkgs-ruby