Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
60 lines (46 loc) · 1.32 KB
/
Copy pathjustfile
File metadata and controls
60 lines (46 loc) · 1.32 KB
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
default:
@just --list
list:
@just --list
add-secrets:
git -C secrets add .
rebuild:
just add-secrets
git add .
sudo nixos-rebuild switch --flake '.?submodules=1#cale'
rebuild-boot:
just add-secrets
git add .
sudo nixos-rebuild boot --flake '.?submodules=1#cale'
rebuild-offline:
just add-secrets
git add .
sudo nixos-rebuild switch --flake '.?submodules=1#cale' --offline
# comin deploys every host from main (modules/aspects/deploy.nix). By hand,
# for when comin itself is broken: the host builds and switches its own
# system, with you signed in (sudo asks for your Kanidm POSIX password).
#
# Deploy one host by hand
deploy host:
git add .
nixos-rebuild --flake '.?submodules=1#{{host}}' --build-host {{host}} --target-host {{host}} --sudo --ask-sudo-password --fast switch
# comin there switches with `switch-to-configuration test`, so a reboot goes
# back to main. HEAD must be on top of main, and signed like any commit comin
# deploys.
#
# Try HEAD on one host before main
try host:
git push --force origin HEAD:refs/heads/testing-{{host}}
# comin follows main again once testing-<host> is gone.
#
# Put one host back on main
untry host:
git push origin --delete testing-{{host}}
push-secrets:
just add-secrets
git -C secrets commit
git -C secrets push
push:
git add .
git commit
git push