-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathJustfile
More file actions
29 lines (20 loc) · 582 Bytes
/
Justfile
File metadata and controls
29 lines (20 loc) · 582 Bytes
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
username := `whoami`
hostname := `hostname -s`
system := `nix-instantiate --raw --strict --eval -E builtins.currentSystem`
help:
just -l
fmt *args:
fmtt {{args}}
hm *args:
{{username}}@{{hostname}} switch --ask {{args}}
build host=hostname *args:
{{hostname}} build {{args}}
switch host=hostname *args:
{{hostname}} switch --ask {{args}}
boot host=hostname *args:
{{hostname}} boot --ask {{args}}
reboot host=hostname *args:
just boot {{host}} --ask {{args}}
reboot
ci test="" *args:
nix-unit --expr "(import ./.).ci \"{{system}}\" \"{{test}}\"" {{args}}