-
Notifications
You must be signed in to change notification settings - Fork 0
/
.justfile
57 lines (46 loc) · 1.17 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
default: build
alias b := build
build target="" *flags="--accept-flake-config":
#!/usr/bin/env nu
let target = (
if ("{{ target }}" | is-empty) {
if $nu.os-info.arch == "aarch64" {
"piceiver-sd-image-native"
} else {
"piceiver-sd-image"
}
} else {
"{{ target }}"
}
)
^systemd-inhibit nix build {{ flags }} $".#($target)"
alias ch := check
check: && format
yamllint .
asciidoctor *.adoc
lychee --cache *.html
nix flake check
alias d := deploy
deploy target="" options="":
#!/usr/bin/env nu
let target = (
if ("{{ target }}" | is-empty) {
if $nu.os-info.arch == "aarch64" {
"piceiver-native"
} else {
"piceiver"
}
} else {
"{{ target }}"
}
)
^systemd-inhibit deploy {{ options }} $".#($target)"
flash device:
zstdcat result/sd-image/nixos-sd-image-*-aarch64-linux.img.zst | sudo dd bs=1M status=progress of={{ device }}
alias fmt := format
format:
treefmt
alias u := update
alias up := update
update:
nix flake update