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