For the past two years I have run all my services (docker containers) on Ubuntu LXC’s on a Proxmox host, and had no issues. However, I am now starting to think about reproducibility, and creating some IaC for my homelab.

On this IaC quest I have started thinking about moving my Ubuntu instances to NixOS, as the declarative nature of the OS would help with configuring and re-configuring containers. However, I want to hear some experiences and opinions on using NixOS.

Has anyone used such a setup, and if so, what are the benefits or downsides?