-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
77 lines (52 loc) · 1.74 KB
/
Justfile
File metadata and controls
77 lines (52 loc) · 1.74 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
colmena_flags := "-v"
default:
@just --choose
build host:
colmena build --on={{ host }} {{ colmena_flags }}
build-all:
colmena build {{ colmena_flags }}
apply host:
colmena apply --on={{ host }} {{ colmena_flags }}
apply-all:
colmena apply
check:
nix flake check --impure --all-systems
repl:
nix repl --extra-experimental-features repl-flake .#
format:
nix fmt
lint:
statix check . && deadnix .
age-from-host host:
nix shell nixpkgs#ssh-to-age --command sh -c "ssh-keyscan {{ host }} | ssh-to-age"
update-secret-files:
find . -regextype egrep -regex '^.*secrets\.(json|yml)' -execdir sops updatekeys {} -y ';'
nixos-anywhere hostname host:
nixos-anywhere --flake .#{{ hostname }} --build-on-remote root@{{ host }}
generate-ci:
nix run .#generate-ci
ansible playbook:
ansible-playbook -i deploy/ansible/inventory.yml deploy/ansible/{{ playbook }}.yml
ssh host:
ssh -F $SSH_CONFIG_FILE root@{{ host }}
mosh host:
mosh --ssh="ssh -F $SSH_CONFIG_FILE" root@{{ host }}
scp *args:
scp -F $SSH_CONFIG_FILE {{ args }}
rsync *args:
rsync -e "ssh -F $SSH_CONFIG_FILE" {{ args }}
sync-e10-land:
rsync -rtu --delete --progress -e "ssh -F $SSH_CONFIG_FILE" ~/Documents/e10.land/ matrix:/var/www/e10.land/
image name:
nom build .#packages.x86_64-linux.{{ name }}-image
terraform *args:
terraform -chdir=./deploy/terraform/ {{ args }}
edit-secret file:
EDITOR="zeditor --wait" sops {{ file }}
push-result-to-cache:
cachix push e10 result
attic push e10 result
generate-authelia-client-info:
authelia crypto rand --length 72 --charset rfc3986
authelia crypto hash generate pbkdf2 --variant sha512 --random --random.length 72 --random.charset rfc3986
alias fmt := format