LXD

From NixOS Wiki

LXD (Linux Container Hypervisor) offers a REST API to manage containers. LXD configuration is supported via NixOS options

Additional Resources

Blog post - Running NixOS in a Linux Container - LXC

Blog post on using LXD in NixOS