mkdir hello_worldcd hello_worlddevenv initdevenv inputs add nixpkgs-ruby github:bobvanderlinden/nixpkgs-ruby --follows nixpkgsdirenv allow .echo ruby-3.3.6 > .ruby-version(use most recent version of Ruby)- Change the content of devenv.nix to:
{ pkgs, lib, config, inputs, ... }: { packages = [ pkgs.git pkgs.foreman pkgs.libyaml.dev ]; languages.javascript = { enable = true; npm.enable = true; }; languages.ruby = { enable = true; versionFile = ./.ruby-version; }; }
gem install railscd .. && cd -(otherwise the newly-installedrailswill not be in the path)THOR_MERGE="nvim -d" rails new -c tailwind .- Choose to merge .gitignore and any other files
- Copy content of temporary file into the file in the directory (such as .gitignore)
Last active
December 11, 2024 05:19
-
-
Save brandoncc/ae4b1d4c3ab6ee0895b6cc5a57e19fbf to your computer and use it in GitHub Desktop.
Creating a new Rails app with nix and devenv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment