Compare commits
No commits in common. "6ac189e1e894819100f337223b5ffa0171195954" and "17f17be7846d872e7e26d5cb6759a52ea4113587" have entirely different histories.
6ac189e1e8
...
17f17be784
6
appvm.go
6
appvm.go
@ -161,13 +161,9 @@ func generateVM(path, name string, verbose bool) (realpath, reginfo, qcow2 strin
|
|||||||
|
|
||||||
syscall.Unlink("result")
|
syscall.Unlink("result")
|
||||||
|
|
||||||
tmpraw := os.Getenv("HOME") + "/appvm/." + name + ".tmp.raw"
|
|
||||||
qcow2 = os.Getenv("HOME") + "/appvm/." + name + ".fake.qcow2"
|
qcow2 = os.Getenv("HOME") + "/appvm/." + name + ".fake.qcow2"
|
||||||
if _, e := os.Stat(qcow2); os.IsNotExist(e) {
|
if _, e := os.Stat(qcow2); os.IsNotExist(e) {
|
||||||
system.System("qemu-img", "create", "-f", "raw", tmpraw, "40M")
|
system.System("qemu-img", "create", "-f", "qcow2", qcow2, "40M")
|
||||||
system.System("mkfs.ext4", "-L", "nixos", tmpraw)
|
|
||||||
system.System("qemu-img", "convert", "-f", "raw", "-O", "qcow2", tmpraw, qcow2)
|
|
||||||
system.System("rm", tmpraw)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
@ -37,7 +37,7 @@ var base_nix = `
|
|||||||
|
|
||||||
environment.etc."xmonad.hs".text = ''
|
environment.etc."xmonad.hs".text = ''
|
||||||
import XMonad
|
import XMonad
|
||||||
main = xmonad def
|
main = xmonad defaultConfig
|
||||||
{ workspaces = [ "" ]
|
{ workspaces = [ "" ]
|
||||||
, borderWidth = 0
|
, borderWidth = 0
|
||||||
, startupHook = startup
|
, startupHook = startup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user