For quite a while, I’ve wanted to try out hosting my services in NixOS LXCs, but it did not seem like there were any definitive one-stop-shop scripts such as the ones on Proxmox Helper Scripts. So, I waited for some clever cookie to make one, because surely this was not something just I was interested in.

But the cookie never appeared, and after a while of waiting, I decided that maybe I should try it myself! A few nights of chicken scratch bash later, and I’ve got a decent little script to boot up and configure a NixOS 24.11 LXC, with a configuration.nix file!

Important disclaimer though, this script is still pretty early in development. While it does boot and set up an LXC, there is very little error handling, and don’t get me started on the UX. I just thought I’d share, and maybe get some suggestions from others.