munksgaard
flakify is an igniter installer that allows you to quickly get a Nix flake-based development shell up and running for your Elixir/Phoenix project.
I use Nix with flakes for all my development environments (insert joke about “how do you know someone is using Nix”) including Elixir and Phoenix. When I start a new Phoenix project, I often find myself having to make the same small adjustments in order to be able to run the project inside a Nix development shell. If you’re like me, you find this quite annoying.
To scratch my own itch, I’ve created flakify, an Igniter installer that automates these small tasks for me. Right now it’s very simplistic, but I think there’s potential to expand the installer quite significantly, by adding support for compiling the Phoenix application as a Nix package, setting up NixOS modules and so on.
To use it, you need to have igniter installed, but then you can just run the following command to initialize a new Phoenix application with a corresponding flake.nix:
mix igniter.new your_new_web_app --install flakify --with phx.new
Please let me know if you find this useful. Any feedback is appreciated.
Trending in Announcing
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex










Showing Posts 1 to 4- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
Asd
Why does nix shell install golang???
munksgaard
Ah damn, I thought I’d remembered to remove that. I’ll release a fix later tonight.
munksgaard
A new release (0.2.0) has been released, removing the unnecessary go dependency.
munksgaard
Version 0.3.0 of flakify has been released, which optionally includes a package derivation for building a mix release with nix build.