-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
58 lines (48 loc) · 1.1 KB
/
Taskfile.yaml
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
version: '3'
tasks:
lint:
desc: Format the files
cmds: [nix fmt]
stage:
internal: true
deps: [lint]
cmds: [git add .]
check:
desc: checks the flake without building it
deps: [stage]
cmds: [nix flake check --no-build]
upgrade:
desc: upgrade the package repositories
cmds: [nix flake update]
discovery:
desc: update discovery (laptop)
deps: [stage]
cmds: [sudo nixos-rebuild --flake .#discovery switch]
viewscreen:
desc: Deploy viewscreen (HTPC)
deps: [stage]
cmds: [deploy .#viewscreen]
zora:
desc: Deploy zora (server)
deps: [stage]
cmds: [deploy .#zora]
vm:
internal: true
deps: [stage]
cmds:
- nix build .#nixosConfigurations.{{.TARGET}}.config.system.build.vm
- ./result/bin/run-{{.TARGET}}-vm
env:
QEMU_NET_OPTS: hostfwd=tcp::2221-:22
vm:viewscreen:
desc: Deploy viewscreen in a virtual machine
cmds:
- task: vm
vars:
TARGET: viewscreen
vm:zora:
desc: Deploy zora in a virtual machine
cmds:
- task: vm
vars:
TARGET: zora