2020-02-08 12:31:49 +00:00
|
|
|
result: etc/nixos/configuration.nix
|
|
|
|
nix-build '<nixpkgs/nixos>' -A vm -k -I nixos-config=$^
|
|
|
|
|
2020-07-08 18:58:23 +01:00
|
|
|
tlaternet.qcow2:
|
2020-02-08 12:31:49 +00:00
|
|
|
nix-shell -p qemu --run 'qemu-img create -f qcow2 $@ 10G'
|
|
|
|
|
2020-07-08 18:58:23 +01:00
|
|
|
run: result tlaternet.qcow2
|
2020-07-19 21:14:21 +01:00
|
|
|
QEMU_OPTS="-m 4096 -nographic" QEMU_NET_OPTS="hostfwd=tcp::2222-:2222,hostfwd=tcp::8000-:80,hostfwd=tcp::25565-:25565" ./result/bin/run-tlaternet-vm
|
2020-02-08 12:31:49 +00:00
|
|
|
|
|
|
|
format: $(wildcard etc/nixos/**/*.nix)
|
|
|
|
nix-shell -p nixpkgs-fmt --run 'nixpkgs-fmt $^'
|