Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-05-17 21:11:01 -04:00
parent 555d35e340
commit 89e4f8af71
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ package main
import "path/filepath"
func mkNixOSImage(configFname, cacheDir, vmID string) (string, error) {
outputFname := filepath.Join(cacheDir, "nixos", vmID+".qcow2")
outputFname := filepath.Join(cacheDir, "nixos", vmID)
err := run("nix-shell", "-p", "nixos-generators", "--run", "nixos-generate -f openstack -o "+outputFname+" -c "+configFname)
if err != nil {
return "", err