mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 14:19:08 +01:00
justfile: Improve formatting
This commit is contained in:
parent
7ab6b77048
commit
d8ce0a52ed
1 changed files with 7 additions and 2 deletions
9
justfile
9
justfile
|
|
@ -41,7 +41,7 @@ reboot:
|
|||
[group('remote')]
|
||||
deploy +hosts:
|
||||
for host in {{ hosts }}; do \
|
||||
nh os switch . --hostname=$host --target-host=$host; \
|
||||
nh os switch . --hostname=$host --target-host=$host; \
|
||||
done
|
||||
|
||||
[group('remote')]
|
||||
|
|
@ -69,4 +69,9 @@ sops-rotate-all:
|
|||
just _sops-do "find . -type f -name 'secrets.json' -exec sops rotate --in-place {} \;"
|
||||
|
||||
_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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue