# NixOS Cloud Init image

## Create image zma.zst
```
nix run github:nix-community/nixos-generators -- -f proxmox -c configuration.nix
```

## Upload to proxmox
```
scp /nix/store/jvwxp7agny9979fglf76s0ca9m2h6950-proxmox-nixos-cloud-init/vzdump-qemu-nixos-cloud-init.vma.zst root@192.168.1.206:/var/lib/vz/dump
```

## Init template
```
qmrestore /var/lib/vz/dump/vzdump-qemu-nixos-cloud-init.vma.zst 9000 --unique true

qm template 9000
```

## Future
Maybe look into nixos-everywhere like done here https://github.com/solomon-b/nixos-config
