-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
24 lines (21 loc) · 791 Bytes
/
justfile
File metadata and controls
24 lines (21 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[private]
anywhere machine *args:
nix run github:nix-community/nixos-anywhere -- --flake .#{{ machine }} {{ args }}
# Generate SSH host keys
prepare-bootstrap machine:
mkdir -p bootstrap/{{ machine }}/etc/ssh
ssh-keygen -t ed25519 -a 100 -N "" -C "{{ machine }}" -f bootstrap/{{ machine }}/etc/ssh/ssh_host_ed25519_key
mv bootstrap/{{ machine }}/etc/ssh/ssh_host_ed25519_key.pub keys/{{ machine }}.pub
agenix --rekey
bootstrap machine host *args:
@just anywhere \
{{ machine }} \
--extra-files \
{{ "./bootstrap/" + machine }} \
--generate-hardware-config \
nixos-facter \
{{ ("./machines/" + machine + "/facter.json") }} \
{{ args }} \
{{ host }}
bootstrap-vm machine *args:
@just anywhere --vm-test {{ args }}