Nix Flake Template for Elixir?

Hey, @Onor.io. Very happy to see that you like Nix.

After the post mentioned by @zimt28, my workflow improved a lot. If you continue to use Nix, I believe you will encounter some issues, like:

  1. How to init a project quickly?
  2. How to package an Elixir app as a Nix derivation?
  3. How to package an Elixir app as a Docker image with Nix?

I really like building Docker image with Nix Flake - I don’t have to sync .dockerignore with .gitignore anymore.

All above problems already have solutions, I hope the following links are also useful to you in the future.

  1. using Nix template: You can create your own nix-dev-template by following the-nix-way/dev-templates or c4710n/nix-dev-templates, etc.
  2. Check out nix-dev-templates/elixir/phoenix/nix/release.nix at 8c8ed3b805c043e2666124fa2b4e22067ca1d0df · c4710n/nix-dev-templates · GitHub.
  3. Check out nix-dev-templates/elixir/phoenix/flake.nix at 8c8ed3b805c043e2666124fa2b4e22067ca1d0df · c4710n/nix-dev-templates · GitHub
2 Likes