1
0

pkgs/clerie-sops: Write config to temp file as sops can't read config from pipe

This commit is contained in:
clerie 2025-04-15 19:32:21 +02:00
parent e125d5d3bf
commit e9695286b6

@ -11,6 +11,8 @@ pkgs.writeShellApplication {
if GIT_ROOT=$(git rev-parse --show-toplevel); then
REPO_ROOT="$GIT_ROOT"
fi
exec sops --config <(clerie-sops-config "$REPO_ROOT") "$@"
CONFIG_FILE="$(mktemp)"
clerie-sops-config "$REPO_ROOT" > "$CONFIG_FILE"
exec sops --config "$CONFIG_FILE" "$@"
'';
}