mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 20:09:07 +01:00
justfile: Improve formatting
This commit is contained in:
parent
7ab6b77048
commit
d8ce0a52ed
1 changed files with 7 additions and 2 deletions
7
justfile
7
justfile
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue