blob: 5d4d6890e4c0bbb28156d57cf2d8eb95967d0748 (
plain)
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
|
alias b := build
alias c := check
alias dr := dry-run
alias sw := switch
alias t := test
alias u := update
alias ui := update-input
rebuildArgs := "--verbose"
rebuild := if os() == "macos" { "darwin-rebuild" } else { "nixos-rebuild" }
default:
@just --choose
[private]
rebuild subcmd:
{{ rebuild }} {{ subcmd }} {{ rebuildArgs }} --flake .
build: (rebuild "build")
dry-run: (rebuild "dry-run")
switch: (rebuild "switch")
test: (rebuild "test")
check:
nix flake check \
--print-build-logs \
--show-trace \
--accept-flake-config
update:
nix flake update
update-input input:
nix flake lock \
--update-input {{ input }} \
--commit-lock-file \
--commit-lockfile-summary "flake: update {{ input }}"
deploy system:
nix run \
--inputs-from . \
'nixpkgs#deploy-rs' -- \
-s '.#{{ system }}'
deploy-all:
nix run \
--inputs-from . \
'nixpkgs#deploy-rs' -- -s
clean:
rm -rf \
result* \
repl-result-out* \
config.tf.json \
.terraform*
|