Compare commits

...

2 Commits

2 changed files with 6 additions and 2 deletions

View File

@ -161,9 +161,13 @@ func generateVM(path, name string, verbose bool) (realpath, reginfo, qcow2 strin
syscall.Unlink("result")
tmpraw := os.Getenv("HOME") + "/appvm/." + name + ".tmp.raw"
qcow2 = os.Getenv("HOME") + "/appvm/." + name + ".fake.qcow2"
if _, e := os.Stat(qcow2); os.IsNotExist(e) {
system.System("qemu-img", "create", "-f", "qcow2", qcow2, "40M")
system.System("qemu-img", "create", "-f", "raw", tmpraw, "40M")
system.System("mkfs.ext4", "-L", "nixos", tmpraw)
system.System("qemu-img", "convert", "-f", "raw", "-O", "qcow2", tmpraw, qcow2)
system.System("rm", tmpraw)
}
return

View File

@ -37,7 +37,7 @@ var base_nix = `
environment.etc."xmonad.hs".text = ''
import XMonad
main = xmonad defaultConfig
main = xmonad def
{ workspaces = [ "" ]
, borderWidth = 0
, startupHook = startup