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

As of NixOS 25.11, LXD has been removed from nixpkgs[1]. You can use incus instead.

☶︎
This article or section needs to be expanded. Further information may be found in the related discussion page. Please consult the pedia article metapage for guidelines on contributing.

Additional Resources

Blog post - Running NixOS in a Linux Container - LXC

Blog post on using LXD in NixOS