Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-05-17 20:50:23 -04:00
parent c3c0d86f9a
commit 4b03ce4078
1 changed files with 1 additions and 1 deletions

View File

@ -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
}