Compare commits

..

No commits in common. "6ac189e1e894819100f337223b5ffa0171195954" and "17f17be7846d872e7e26d5cb6759a52ea4113587" have entirely different histories.

2 changed files with 2 additions and 6 deletions

View File

@ -161,13 +161,9 @@ 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", "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)
system.System("qemu-img", "create", "-f", "qcow2", qcow2, "40M")
}
return

View File

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