pkgs/clerie-sops: Write config to temp file as sops can't read config from pipe
This commit is contained in:
@@ -11,6 +11,8 @@ pkgs.writeShellApplication {
|
|||||||
if GIT_ROOT=$(git rev-parse --show-toplevel); then
|
if GIT_ROOT=$(git rev-parse --show-toplevel); then
|
||||||
REPO_ROOT="$GIT_ROOT"
|
REPO_ROOT="$GIT_ROOT"
|
||||||
fi
|
fi
|
||||||
exec sops --config <(clerie-sops-config "$REPO_ROOT") "$@"
|
CONFIG_FILE="$(mktemp)"
|
||||||
|
clerie-sops-config "$REPO_ROOT" > "$CONFIG_FILE"
|
||||||
|
exec sops --config "$CONFIG_FILE" "$@"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user