Deploying with Nixpkgs, process-compose, and tailscale to do some edge networking

Hello everyone,

I have been having fun with fly.io and Nixpkgs to do some reverse proxying and caching, and serve my blog written with Leptos.

If you have never used or heard of Nix and Nixpkgs before, I think this is a great introduction to what this package manager can do, and for the more intermediate Nixers I get into some implementation details, like the (NixOS) module system.

Link to the article.

1 Like

This was interesting! It’s always neat to see more Nix/Guix posts here—the stealthy future of packaging systems, :black_cat:.

As one small note…

does not fit Fly.io’s model of one process per machine (VM)

This was true for a long time, but they relaxed it recently—although the new way† isn’t necessarily better in this case.


†Although possibly you’ve seen this already, since there’s the phrase “default model” elsewhere.

1 Like

Thanks!

If I did see that, I didn’t pay too much attention. I started working on this project before it was published. The config format reminds me of process-compose actually.

I find it nice to be able to use parts you already have, and skip learning new abstractions constantly.

1 Like