-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
65 lines (49 loc) · 1.45 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
58
59
60
61
62
63
64
65
@default $JUST_CHOOSER="nix run nixpkgs#fzf":
just --choose
run HOST *COMMAND:
#! /usr/bin/env bash
IP=$(nix eval --quiet --raw .#nixosConfigurations.{{HOST}}.config.deployment.targetHost)
ssh -t $IP "{{COMMAND}}"
logs HOST UNIT: (run HOST "sudo journalctl -xefu" UNIT)
[group('deployment')]
switch HOST:
@just apply switch {{HOST}}
[group('deployment')]
apply OPERATION HOST:
colmena apply {{OPERATION}} --on={{HOST}} --evaluator=streaming --build-on-target
[group('secrets')]
edit-secret HOST $EDITOR="code --wait":
sops ./hosts/{{HOST}}/secrets/secrets.yml
[group('secrets')]
edit-secret-kanidm $EDITOR="code --wait":
sops --input-type=binary ./hosts/asiyah/secrets/kanidm-provisioning.encjson
[group('secrets')]
edit-secret-core $EDITOR="code --wait":
sops ./core/secrets/secrets.yml
[group('secrets')]
edit-secret-asiyah:
just edit-secret asiyah
[group('secrets')]
edit-secret-briah:
just edit-secret briah
[group('secrets')]
edit-secret-atziluth:
just edit-secret atziluth
[group('secrets')]
edit-secret-beatrice:
just edit-secret beatrice
[group('secrets')]
edit-secret-bernkastel:
just edit-secret bernkastel
[group('secrets')]
edit-secret-erika:
just edit-secret erika
[group('secrets')]
edit-secret-featherine:
just edit-secret featherine
[group('secrets')]
edit-secret-neith-deck:
just edit-secret neith-deck
[group("editing")]
edit-remote HOST PATH:
code sftp://root@{{HOST}}{{PATH}}