Repo: https://github.com/aksiksi/compose2nix
I’ve been working on a CLI tool that takes a Docker Compose project and converts into a NixOS config file consisting of oci-containers
(Podman or Docker) and associated systemd services. This file can then be imported as-is as part of your NixOS configuration.nix
.
You can see a sample input and output here: https://github.com/aksiksi/compose2nix#sample
This tool is still early in development, but the basic functionality works. I would appreciate any feedback or input on what features you’d want to see in a tool like this. Thanks!
Should be easily doable. The repo is a Flake already, so I can either update or add a new devshell to it: https://github.com/aksiksi/compose2nix/blob/main/flake.nix#L33-L38