Skip to content

NRHelmi/nixos-libvirt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 NixOS on Libvirt with Terraform

This project builds a NixOS virtual machine image using nixos-generate and deploys it using Terraform with the Libvirt provider.


🔧 Requirements


🧪 Development Shell

Start a development shell with all tools:

nix-shell

🖼️ Generate NixOS Image

Build the QCOW2 image:

make-boot-image

Output: image/nixos-cloudimg.qcow2/nixos.qcow2

🚀 Deploy with Terraform

Enter the Terraform directory:

cd terraform
terraform init
terraform apply

🧹 Clean Up

Destroy all created resources:

cd terraform
terraform destroy

📚 References

About

nixos virtual machine on libvirt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published