-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
69 lines (58 loc) · 1.46 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
default:
@just --list
sirius:
nixos-rebuild switch --flake .#sirius
update:
nix flake update
iso:
nix run github:nix-community/nixos-generators -- \
--format iso \
--flake .#siriusIso \
-o result
sudo cp result/iso/*.iso nixos.iso
iso-vm:
qemu-system-x86_64 \
-enable-kvm \
-m 16G \
-smp cores=8 \
-cdrom nixos.iso \
-boot d \
-nographic \
-netdev user,id=net0 \
-device virtio-net-pci,netdev=net0
qcow:
nix run github:nix-community/nixos-generators -- \
--format qcow \
--flake .#siriusVM \
-o result
sudo cp result/*.qcow2 nixos.qcow2
sudo chown $(id -u):$(id -g) nixos.qcow2
sudo chmod 600 nixos.qcow2
qcow-vm:
qemu-system-x86_64 \
-enable-kvm \
-m 16G \
-smp cores=8 \
-drive file=nixos.qcow2,if=virtio,format=qcow2 \
-boot c \
-nographic \
-netdev user,id=net0 \
-device virtio-net-pci,netdev=net0
raw:
nix run github:nix-community/nixos-generators -- \
--format raw \
--flake .#siriusVM \
-o result
sudo cp result/*.img nixos.img
sudo chown $(id -u):$(id -g) nixos.img
sudo chmod 600 nixos.img
raw-vm:
qemu-system-x86_64 \
-enable-kvm \
-m 16G \
-smp cores=8 \
-drive file=nixos.img,if=virtio,format=raw \
-boot c \
-nographic \
-netdev user,id=net0 \
-device virtio-net-pci,netdev=net0