diff --git a/nixos.go b/nixos.go index 0701c0d..70be6ff 100644 --- a/nixos.go +++ b/nixos.go @@ -4,7 +4,7 @@ import "path/filepath" func mkNixOSImage(configFname, cacheDir, vmID string) (string, error) { outputFname := filepath.Join(cacheDir, "nixos", vmID+".qcow2") - err := run("nix-shell", "-p", "nixos-generators", "--run", "nixos-generate -f qcow -o "+outputFname) + err := run("nix-shell", "-p", "nixos-generators", "--run", "nixos-generate -f qcow -o "+outputFname+" -c "+configFname) if err != nil { return "", err }