Running Reproducible Rust: A Fly and Nix Love Story

Over the next few days I’m working to setup a Minecraft server for me and a few friends.
I’d like to host it using a Nix Docker container on Fly. It’s open source on GitHub.

Parts of your flake.nix configuration are super helpful in my effort to make this happen.
Thank you for writing this post.

For anyone else looking to use Fly with Nix:
I found a blogpost with this topic. Deploying Nix builds on Fly.io - sekun
I found a template with this purpose. GitHub - LutrisEng/nix-fly-template: Build an application with Nix and deploy it on Fly.io
My repository is open source. GitHub - mboyea/nixflymc: A Minecraft server hosted by Fly.io using NixOS in a Docker container.

Additional links to help you get started with Nix:
Explanation of build flakes on a blogpost: Making a dev shell with nix flakes
Introduction and commentary about Nix flakes on a blogpost: Flakes aren't real and cannot hurt you: a guide to using Nix flakes the non-flake way - jade's www site
The “Hello, World!” example nix program src code: nixpkgs/pkgs/by-name/he/hello/package.nix at nixos-24.05 · NixOS/nixpkgs · GitHub + nixpkgs/pkgs/by-name/he/hello/test.nix at nixos-24.05 · NixOS/nixpkgs · GitHub