blueberry: tailscale
This commit is contained in:
parent
1e32f79bbf
commit
882ec71640
3 changed files with 9 additions and 42 deletions
8
Justfile
8
Justfile
|
@ -53,12 +53,20 @@ update:
|
|||
gc generations="5d":
|
||||
sudo nix-env --delete-generations {{generations}}
|
||||
sudo nix-store --gc
|
||||
sudo nix-collect-garbage -d
|
||||
nix-collect-garbage
|
||||
|
||||
# Add a machine's age key for SOPS
|
||||
sops-add machine_name target:
|
||||
bun tools/onboard-machine.js {{machine_name}} {{target}}
|
||||
sops updatekeys -y secrets/default.yaml
|
||||
|
||||
# Generate a SOPS keys file
|
||||
sops-generate-keys:
|
||||
sudo cat /etc/ssh/ssh_host_ed25519_key | ssh-to-age --private-key > .sops.keys
|
||||
cat ~/.ssh/id_ed25519 | ssh-to-age --private-key >> .sops.keys
|
||||
|
||||
deploy target_host target_override="":
|
||||
TARGET=
|
||||
if [ "{{target_override}}" == "" ]; then TARGET=$(cat nixos/hosts/{{target_host}}/.target); else TARGET="{{target_override}}"; fi
|
||||
@echo "TARGET=$TARGET"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue