From 4b03ce40786cae886b35de769927698cb4ca552c Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Mon, 17 May 2021 20:50:23 -0400 Subject: [PATCH] oops Signed-off-by: Christine Dodrill --- nixos.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }