justfile: Improve formatting

This commit is contained in:
SebastianStork 2026-02-04 20:40:00 +01:00
parent 7ab6b77048
commit d8ce0a52ed
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -41,7 +41,7 @@ reboot:
[group('remote')] [group('remote')]
deploy +hosts: deploy +hosts:
for host in {{ hosts }}; do \ for host in {{ hosts }}; do \
nh os switch . --hostname=$host --target-host=$host; \ nh os switch . --hostname=$host --target-host=$host; \
done done
[group('remote')] [group('remote')]
@ -69,4 +69,9 @@ sops-rotate-all:
just _sops-do "find . -type f -name 'secrets.json' -exec sops rotate --in-place {} \;" just _sops-do "find . -type f -name 'secrets.json' -exec sops rotate --in-place {} \;"
_sops-do command: _sops-do command:
-if command -v sops >/dev/null 2>&1; then {{ command }}; else nix develop .#sops --command bash -c "{{ command }}; exec zsh"; fi if command -v sops > /dev/null 2>&1; then \
{{ command }}; \
else \
nix develop .#sops --command bash -c "{{ command }}; \
exec zsh"; \
fi